Skip to content
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

Remove redundant -DCMAKE_BUILD_TYPE=Release flags #18000

Conversation

aneeshusa
Copy link
Contributor

Motivation for this change

Cleanup I noticed while working on #17886.

Things done
  • Tested using sandboxing
    (nix.useChroot on NixOS,
    or option build-use-chroot in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • OS X
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Haven't built or tested yet.

@mention-bot
Copy link

@aneeshusa, thanks for your PR! By analyzing the annotation information on this pull request, we identified @Ralith, @edolstra and @andrewrk to be potential reviewers

@andrewrk
Copy link
Member

Why is this flag redundant? AFAIK, the default cmake build is not Release.

@aneeshusa
Copy link
Contributor Author

@andrewrk In pkgs/development/tools/build-managers/cmake/setup-hook.sh, -DCMAKE_BUILD_TYPE=Release is prepended to cmakeFlags, since a commit in 2012. AFAIK, this sets the default to Release (for derivations with cmake as a build input).

@andrewrk
Copy link
Member

OK this sounds reasonable to me then.

Since commit 183d05a in 2012, this is the default.
@aneeshusa aneeshusa force-pushed the remove-redundant-cmake-build-type-release-args branch from 2dbf4cf to 63dc04a Compare August 25, 2016 21:32
@aneeshusa
Copy link
Contributor Author

@andrewrk I updated the commit message with that info, thanks for pointing that out.

@Mic92
Copy link
Member

Mic92 commented Oct 1, 2016

Merged thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants