Skip to content

Commit

Permalink
disable RTTI in a more idiomatic way
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreif committed Oct 9, 2020
1 parent c19b4f6 commit d4ad5b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkgs/development/compilers/llvm/10/lldb.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ stdenv.mkDerivation (rec {
hardeningDisable = [ "format" ];

cmakeFlags = [
"-DCMAKE_CXX_FLAGS=-fno-rtti"
"-DLLVM_ENABLE_RTTI=OFF"
"-DClang_DIR=${clang-unwrapped}/lib/cmake"
"-DLLVM_EXTERNAL_LIT=${lit}/bin/lit"
] ++ stdenv.lib.optionals stdenv.isDarwin [
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/llvm/11/lldb.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ stdenv.mkDerivation (rec {
hardeningDisable = [ "format" ];

cmakeFlags = [
"-DCMAKE_CXX_FLAGS=-fno-rtti"
"-DLLVM_ENABLE_RTTI=OFF"
"-DClang_DIR=${clang-unwrapped}/lib/cmake"
"-DLLVM_EXTERNAL_LIT=${lit}/bin/lit"
] ++ stdenv.lib.optionals stdenv.isDarwin [
Expand Down

0 comments on commit d4ad5b3

Please sign in to comment.