Skip to content

Instantly share code, notes, and snippets.

@mikdusan

mikdusan/snip.rb Secret

Created March 13, 2021 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikdusan/012df08fc2330f23e72a1374962290fd to your computer and use it in GitHub Desktop.
Save mikdusan/012df08fc2330f23e72a1374962290fd to your computer and use it in GitHub Desktop.
if config.os == :openbsd
case config.type
when :release
cmake.push ["-DCMAKE_C_FLAGS_RELEASE_INIT='-O3 -DNDEBUG'"]
cmake.push ["-DCMAKE_CXX_FLAGS_RELEASE_INIT='-O3 -DNDEBUG'"]
when :relwithdebinfo
cmake.push ["-DCMAKE_C_FLAGS_RELEASE_INIT='-g -O2 -DNDEBUG'"]
cmake.push ["-DCMAKE_CXX_FLAGS_RELEASE_INIT='-g -O2 -DNDEBUG'"]
when :minsizerel
cmake.push ["-DCMAKE_C_FLAGS_RELEASE_INIT='-Os -DNDEBUG'"]
cmake.push ["-DCMAKE_CXX_FLAGS_RELEASE_INIT='-Os -DNDEBUG'"]
;
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment