upcxx compiler wrapper accepts -g -O

Issue #228 resolved
Dan Bonachea created an issue

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)

  1. Log in to comment