-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EXTRAFLAGS appears in AFLAGS three times #1688
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I only checked sim. but others might have similar issues.
when you do "make EXTRAFLAGS=foobar",
foobar appears in eg. AFLAGS three times.
it's a problem because some options are not idempotent.
eg. the following example was with EXTRAFLAGS="-fsanitize=address -mllvm -asan-stack=0 "
AS: sim/up_setjmp64.S
/usr/local/Cellar/llvm/10.0.1/bin/clang -c -Wall -Wstrict-prototypes -Wshadow -Wundef -g -fstack-protector-all -fno-builtin -fno-common -isystem "/Users/yamamoto/git/nuttx/nuttx/include" -D__KERNEL__ -fsanitize=address -mllvm -asan-stack=0 -pipe -I "/Users/yamamoto/git/nuttx/nuttx/arch/sim/src" -I "/Users/yamamoto/git/nuttx/nuttx/arch/sim/src/chip" -I "/Users/yamamoto/git/nuttx/nuttx/sched" -D__KERNEL__ -fsanitize=address -mllvm -asan-stack=0 -D__ASSEMBLY__ -I "/Users/yamamoto/git/nuttx/nuttx/arch/sim/src" -I "/Users/yamamoto/git/nuttx/nuttx/arch/sim/src/chip" -I "/Users/yamamoto/git/nuttx/nuttx/sched" -D__KERNEL__ -fsanitize=address -mllvm -asan-stack=0 sim/up_setjmp64.S -o up_setjmp64.o
clang (LLVM option parsing): for the --asan-stack option: may only occur zero or one times!
clang (LLVM option parsing): for the --asan-stack option: may only occur zero or one times!
The text was updated successfully, but these errors were encountered: