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 <matt@madison.systems>
This commit is contained in:
Matt Madison
2023-05-27 07:17:46 -07:00
parent e644928ab2
commit 8dfb2d6be7

View File

@@ -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()