huronOS-build-tools icon indicating copy to clipboard operation
huronOS-build-tools copied to clipboard

Module/directive for scripts containing the compilation flags.

Open equetzal opened this issue 2 years ago • 0 comments

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.

equetzal avatar Jun 17 '23 15:06 equetzal