|
|
@ -73,7 +73,8 @@ 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 |
|
|
|
test_cflags = [ |
|
|
|
if cc.get_id() != 'msvc' |
|
|
|
|
|
|
|
test_cflags = [ |
|
|
|
'-Wpointer-arith', |
|
|
|
'-Wpointer-arith', |
|
|
|
'-Wmissing-declarations', |
|
|
|
'-Wmissing-declarations', |
|
|
|
'-Wformat=2', |
|
|
|
'-Wformat=2', |
|
|
@ -105,7 +106,11 @@ test_cflags = [ |
|
|
|
'-Werror=pointer-to-int-cast', |
|
|
|
'-Werror=pointer-to-int-cast', |
|
|
|
'-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) |
|
|
|