-
-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMAKE_ARGS should contain -DCMAKE_BUILD_TYPE=None, else builds picks up -O3 instead -O2 #1859
Open
1 task done
Labels
Comments
jschueller
added a commit
to jschueller/ctng-compiler-activation-feedstock
that referenced
this issue
Dec 21, 2022
5 tasks
What's the issue with builds picking up There are packages that don't support CMAKE_BUILD_TYPE=None, and this would break them. Also the clang conda compilers in macOS sets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Conda-forge documentation
Installed packages
eg https://dev.azure.com/conda-forge/84710dde-1620-425b-80d0-4cf5baca359d/_apis/build/builds/623322/logs/69
Environment info
Issue
in every package that use cmake for C/C++, C/CXXFLAGS look like that and want -O2 on linux/mac:
but some cmake projects might default their CMAKE_BUILD_TYPE to Release and pick up
the default CMAKE_CXX_FLAGS_RELEASE="-O3 -DNDEBUG" which are appended conda forge's CXXFLAGS, and so override the -O2
(or Debug and pickup -g flag)
one solution is to add -DCMAKE_BUILD_TYPE=None, like Debian does
The text was updated successfully, but these errors were encountered: