diff options
Diffstat (limited to 'ecomp-c/build.sh')
-rwxr-xr-x | ecomp-c/build.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ecomp-c/build.sh b/ecomp-c/build.sh index 1fce90b..1d7551e 100755 --- a/ecomp-c/build.sh +++ b/ecomp-c/build.sh @@ -13,7 +13,7 @@ MODULES+=("$BINARY.c") case "${COMPILER}" in gcc) - CFLAGS="-m32 -march=i386 -Werror -Wno-noreturn -Wall -pedantic -std=c89 -x c" + CFLAGS="-m32 -march=i386 -Wall -pedantic -Werror -std=c89 -x c" ;; clang) CFLAGS="-m32 -march=i386 -Werror -Wall -pedantic -std=c89 -x c" @@ -62,10 +62,12 @@ case "${COMPILER}:${MODE}" in ;; pcc:freestanding) CFLAGS+=" -ffreestanding -nostdlib -Wl,-emain" + MODULES+=("builtin_unreachable.c") ;; tcc:freestanding) CFLAGS+=" -fno-bultin -nostdlib" MODULES+=("_start-stub.c") + MODULES+=("builtin_unreachable.c") ;; *:hosted) CFLAGS+=" -lbsd" |