|
|
|
@ -73,6 +73,7 @@ endif |
|
|
|
conf.set10('ENABLE_GLX', build_glx) |
|
|
|
conf.set10('ENABLE_GLX', build_glx) |
|
|
|
|
|
|
|
|
|
|
|
# Compiler flags, taken from the Xorg macros |
|
|
|
# Compiler flags, taken from the Xorg macros |
|
|
|
|
|
|
|
if cc.get_id() != 'msvc' |
|
|
|
test_cflags = [ |
|
|
|
test_cflags = [ |
|
|
|
'-Wpointer-arith', |
|
|
|
'-Wpointer-arith', |
|
|
|
'-Wmissing-declarations', |
|
|
|
'-Wmissing-declarations', |
|
|
|
@ -106,6 +107,10 @@ test_cflags = [ |
|
|
|
'-fno-strict-aliasing', |
|
|
|
'-fno-strict-aliasing', |
|
|
|
'-Wno-int-conversion', |
|
|
|
'-Wno-int-conversion', |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
test_cflags = [] |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
common_cflags = [] |
|
|
|
common_cflags = [] |
|
|
|
foreach cflag: test_cflags |
|
|
|
foreach cflag: test_cflags |
|
|
|
if cc.has_argument(cflag) |
|
|
|
if cc.has_argument(cflag) |
|
|
|
|