Added OS check to allow use of script on all supported operating systems.

This commit is contained in:
Achim D. Brucker 2023-09-26 06:06:52 +01:00
parent deade608ac
commit 3ee2f3e284
1 changed files with 5 additions and 1 deletions

View File

@ -10,4 +10,8 @@
#
export L4CPP="-DTARGET=ARM -DTARGET_ARM -DPLATFORM=Sabre -DPLATFORM_Sabre"
llvm-gcc -Wno-invalid-pp-token -E -x c $@
if [[ "$OSTYPE" == "darwin"* ]]; then
llvm-gcc -Wno-invalid-pp-token -E -x c $@
else
cpp -Wno-invalid-pp-token -E -x c $@
fi