@@ -4,21 +4,35 @@ include ../../src/config.inc
44include ../../src/common
55
66ifeq ($(BUILD_ENV_ ) ,MSVC)
7- exe= ../../../src/goto-cc/goto-cl -X gcc-only
7+ exe = ../../../src/goto-cc/goto-cl
88else
9- exe=../../../src/goto-cc/goto-cc
9+ exe = ../../../src/goto-cc/goto-cc
10+ endif
11+
12+ ifeq ($(BUILD_ENV_ ) ,MSVC)
13+ excluded_tests = -X gcc-only
14+ else
15+ # In MacOS, a change in the assert.h header file
16+ # is causing template errors when exercising the
17+ # C++ front end (because of a transitive include
18+ # of <type_traits>) for files that include the
19+ # <assert.h> or <cassert> headers.
20+ OS := $(shell uname)
21+ ifeq ($(OS),Darwin)
22+ excluded_tests = -X macos-assert-broken
23+ endif
1024endif
1125
1226test :
13- @../test.pl -e -p -c $(exe )
27+ @../test.pl -e -p -c $(exe ) $( excluded_tests )
1428ifneq ($(BUILD_ENV_ ) ,MSVC)
15- @../test.pl -e -p -c "$(exe) -xc++ -D_Bool=bool" -I test-c++-front-end -s c++-front-end
29+ @../test.pl -e -p -c "$(exe) -xc++ -D_Bool=bool" -I test-c++-front-end -s c++-front-end $(excluded_tests)
1630endif
1731
1832tests.log : ../test.pl
19- @../test.pl -e -p -c $(exe )
33+ @../test.pl -e -p -c $(exe ) $( excluded_tests )
2034ifneq ($(BUILD_ENV_ ) ,MSVC)
21- @../test.pl -e -p -c "$(exe) -xc++ -D_Bool=bool" -I test-c++-front-end -s c++-front-end
35+ @../test.pl -e -p -c "$(exe) -xc++ -D_Bool=bool" -I test-c++-front-end -s c++-front-end $(excluded_tests)
2236endif
2337
2438show :
0 commit comments