Setting compiler options from the command line fails

Issue #21 new
Former user created an issue

Parts does not support multiple compiler/linker flags from the command line.

How to reproduce: 1. scons CCFLAGS="-fsanitize=address -fno-omit-frame-pointer"

This result in gcc call like: /usr/bin/gcc -o file.o -c "-fsanitize=address -fno-omit-frame-pointer" file.c gcc: error: unrecognized command line option '-fsanitize=address -fno-omit-frame-pointer'

The same issue was seen with other flags: ASFLAGS, CFLAGS, CCFLAGS, CXXFLAGS, CPPDEFINES, CPPFLAGS, LINKFLAGS, LIBS.

Use case this bug critical to: 1. I want ad-hock enable of AdressSanitizer (ASAN) for my build to verify it has no memory issues. I want to enable ASAN features specific to my needs today which differs from CI needs or from other developers needs.

Comments (0)

  1. Log in to comment