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

opencv3: added release option #20628

Closed
wants to merge 1 commit into from
Closed

opencv3: added release option #20628

wants to merge 1 commit into from

Conversation

mdaiter
Copy link
Contributor

@mdaiter mdaiter commented Nov 22, 2016

Motivation for this change

OpenCV has a 'release' option that compiles the OpenCV package with less debugging info and compile flags oriented at performance gains (e.g. -O3). We should allow users to enable this.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • 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.

@mention-bot
Copy link

@mdaiter, thanks for your PR! By analyzing the history of the files in this pull request, we identified @abbradar, @cpages and @bjornfor to be potential reviewers.

@mdaiter
Copy link
Contributor Author

mdaiter commented Nov 22, 2016

cc @viric

@viric
Copy link
Member

viric commented Nov 22, 2016

-DCMAKE_BUILD_TYPE=Release is always set. Does your commit really make a difference? (I see uppercase "RELEASE")

@mdaiter
Copy link
Contributor Author

mdaiter commented Nov 22, 2016

Ah @viric , was not aware of this being the default. Let me switch this to enableRelease being default true, and if set to false, it'll enable debug mode

opencv3: modified to enable release or debug mode set
@mdaiter mdaiter closed this Nov 28, 2016
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.

None yet

3 participants