huronOS-build-tools
huronOS-build-tools copied to clipboard
Module/directive for scripts containing the compilation flags.
In the ICPC environment and in the IOI environment, it's usual to have specified the compilation flags to be used on a contest. E.g.:
C:
gcc -x c -g -O2 -std=gnu11 -static ${files} -lm
C++:
g++ -x c++ -g -O2 -std=gnu++20 -static ${files}
Java:
javac -encoding UTF-8 -sourcepath . -d . ${files}
Python 3
pypy3 -m py_compile ${files}
Kotlin
kotlinc -d . ${files}
It would be good to create a software module or a directive where we can specify this compilation rules specifics and create a bash alias of scripts to include this compilation flags. Otherwise it could be an option to enable a link to pdf with the compilation flags but that would be up to the contest manager to include that.