diff options
Diffstat (limited to 'check')
-rwxr-xr-x | check/check-system-flags | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/check/check-system-flags b/check/check-system-flags index 831dd0e..632496c 100755 --- a/check/check-system-flags +++ b/check/check-system-flags @@ -39,9 +39,28 @@ run_test --cflags system RESULT="-L/usr/lib -lsystem" run_test --libs system -# Now check that the various compiler environment variables also update -# the system include path +# Now check that the various GCC environment variables also update the +# system include path for var in CPATH C_INCLUDE_PATH CPP_INCLUDE_PATH; do RESULT="" eval $var=/usr/include run_test --cflags system + + # Make sure these are not skipped in --msvc-syntax mode + if [ "$native_win32" = yes ]; then + RESULT="-I/usr/include" + eval $var=/usr/include run_test --cflags --msvc-syntax system + fi +done + +# Check that the various MSVC environment variables also update the +# system include path when --msvc-syntax is in use +for var in INCLUDE; do + RESULT="-I/usr/include" + eval $var=/usr/include run_test --cflags system + + # Make sure these are skipped in --msvc-syntax mode + if [ "$native_win32" = yes ]; then + RESULT="" + eval $var=/usr/include run_test --cflags --msvc-syntax system + fi done |