From 8dfb2d6be7e0bb72ea36ca7f0ccd23c442a57f1c Mon Sep 17 00:00:00 2001 From: Matt Madison Date: Sat, 27 May 2023 07:17:46 -0700 Subject: [PATCH] cuda.bbclass: strip -fcanon-prefix-map from DEBUG_FLAGS for cuda builds Unfortunately, we don't have a good way of stripping that flag just from the nvcc/gcc-8 invocations. For now, at least, just remove it entirely for all cuda builds. Signed-off-by: Matt Madison --- classes/cuda.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/cuda.bbclass b/classes/cuda.bbclass index f2430bbf..e866d77a 100644 --- a/classes/cuda.bbclass +++ b/classes/cuda.bbclass @@ -14,6 +14,7 @@ CUDA_LDFLAGS = "\ LDFLAGS:prepend:cuda = "${TOOLCHAIN_OPTIONS} " LDFLAGS:append:cuda = " ${CUDA_LDFLAGS}" +DEBUG_FLAGS:remove:cuda = "-fcanon-prefix-map" def cuda_extract_compiler(compiler, d, prefix='-Xcompiler '): args = d.getVar(compiler).split()