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

Optimization is off by default #714

@Voileexperiments

Description

@Voileexperiments

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions