mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
scons: Filter-out NDEBUG define from llvm-config.
Based on a similar autoconf change from Marek.
This commit is contained in:
parent
d60880db35
commit
acf82194ce
1 changed files with 9 additions and 1 deletions
|
|
@ -141,7 +141,15 @@ def generate(env):
|
|||
llvm_version = distutils.version.LooseVersion(llvm_version)
|
||||
|
||||
try:
|
||||
env.ParseConfig('llvm-config --cppflags')
|
||||
# Treat --cppflags specially to prevent NDEBUG from disabling
|
||||
# assertion failures in debug builds.
|
||||
cppflags = env.ParseFlags('!llvm-config --cppflags')
|
||||
try:
|
||||
cppflags['CPPDEFINES'].remove('NDEBUG')
|
||||
except ValueError:
|
||||
pass
|
||||
env.MergeFlags(cppflags)
|
||||
|
||||
env.ParseConfig('llvm-config --libs')
|
||||
env.ParseConfig('llvm-config --ldflags')
|
||||
except OSError:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue