build: crazy workflow idea 81
Some checks failed
Build / build-linux (push) Failing after 5s

This commit is contained in:
2024-03-20 18:06:12 +01:00
parent 38483a8809
commit b74ebc6668
2 changed files with 12 additions and 16 deletions

View File

@@ -10,10 +10,10 @@ cd ..
cp iw4/scripts/mp/_jump.gsc build/iw4
# replace gsc extension with cpp so GCC is happy
mv iw5/scripts/mp/_jump.gsc iw5/scripts/mp/_jump.cpp
mv iw5/scripts/mp/_jump.c iw5/scripts/mp/_jump.cpp
# perform macro expansion
g++ -std=c++20 -D_UTILITY_DEBUG -DIW5 -DCI -E "iw5/scripts/mp/_jump.cpp" -o _jump.in
gcc -D_UTILITY_DEBUG -DIW5 -DCI -E "iw5/scripts/mp/_jump.c" -o _jump.in
# remove things gcc added to the file
python3 .gitea/scripts/clean.py _jump.in _jump.gsc