Skip to content

Commit 0bd112c

Browse files
committed
Quote $CC in library_check.sh
This commit fixes failure-to-build on systems where the path to the compiler contains spaces. This is common on Microsoft Windows, where the compiler lives somewhere under `C:\Program Files`. Prior to this commit, src/ansi-c/library_check.sh would try to execute `C:\Program` and fail.
1 parent fe67615 commit 0bd112c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ansi-c/library_check.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ for f in "$@"; do
1010
perl -p -i -e 's/(_mm_.fence)/s$1/' __libcheck.c
1111
perl -p -i -e 's/(__sync_)/s$1/' __libcheck.c
1212
perl -p -i -e 's/(__noop)/s$1/' __libcheck.c
13-
$CC -std=gnu99 -E -include library/cprover.h -D__CPROVER_bool=_Bool -D__CPROVER_thread_local=__thread -DLIBRARY_CHECK -o __libcheck.i __libcheck.c
14-
$CC -S -Wall -Werror -pedantic -Wextra -std=gnu99 __libcheck.i -o __libcheck.s -Wno-unused-label
13+
"$CC" -std=gnu99 -E -include library/cprover.h -D__CPROVER_bool=_Bool -D__CPROVER_thread_local=__thread -DLIBRARY_CHECK -o __libcheck.i __libcheck.c
14+
"$CC" -S -Wall -Werror -pedantic -Wextra -std=gnu99 __libcheck.i -o __libcheck.s -Wno-unused-label
1515
ec="${?}"
1616
rm __libcheck.s __libcheck.i __libcheck.c
1717
[ "${ec}" -eq 0 ] || exit "${ec}"

0 commit comments

Comments
 (0)