Compare commits

...

3 Commits

2 changed files with 11 additions and 1 deletions

View File

@ -25,3 +25,9 @@ AutoCorres with the AFP being registered as an Isabelle component.
## Branch "isabelle2023"
This branch provides a port of AutoCorres (and AutoCorres only) to Isabelle 2023.
## Branch "cpp_wrapper"
This branch adds an OS check to the cpp-wrapper script. This allows using the cpp wrapper
on all supported operating systems, allowing a uniform ``declare [[cpp_path = "..."]]``
across all supported operating systems.

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