This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Description
Apparently compiler flag for C++ runner does not have optimization turned on, as well as other languages.
This is arguably wrong because it's non-standard: standard optimization parameter used across most languages (if available) in OJ ecosystem (e.g IOI [1], ACM [2], Codeforces[3][4]) is -O2
, so CW should use -O2
by default too.
Now there is #699, but OPTIONS_GHC
pragma overrides command-line options anyway so it shouldn't be a problem:
NOTE: The contents of OPTIONS_GHC are appended to the command-line options, so options given in the source file override those given on the command-line.