upcxx compiler wrapper accepts -g -O
Issue #228
resolved
The upcxx
compiler wrapper should require the user to pass exactly one of -g
or -O*
, or otherwise set $UPCXX_CODEMODE
to unambiguously select the debug or O3 library.
Due to a scripting error through 2019.3.2, using both options (eg upcxx -g -O
) is incorrectly accepted (even when $UPCXX_CODEMODE
is unset), and the script silently uses debug mode (even if UPCXX_CODEMODE=O3
) . This is contrary to our advertised default behavior of O3.
It may result in the mistaken perception that we support an "mixed" version of the library, which we do not.
The script should be fixed to match the originally intended behavior.
Comments (3)
-
reporter -
reporter - changed status to resolved
Fix issue
#228: incorrect behavior for upcxx -g -O→ <<cset af5cd2cfd91b>>
-
reporter Merge pull request #91 into develop
→ <<cset 3dc69bebe8d7>>
- Log in to comment
Proposed fix in pull request #91