Skip to content

Commit dad5d1c

Browse files
committed
Introduced LLVM_ENABLE_RTTI
The better approach is backported to upstream as rust-lang/rust#93640
1 parent 22be7a9 commit dad5d1c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/native.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,10 @@ impl Step for Llvm {
320320
cfg.define("CMAKE_LIBTOOL", libtool);
321321
}
322322

323+
if env::var_os("LLVM_ENABLE_RTTI").is_some() {
324+
cfg.define("LLVM_ENABLE_RTTI", "YES");
325+
}
326+
323327
configure_cmake(builder, target, &mut cfg, true);
324328

325329
// FIXME: we don't actually need to build all LLVM tools and all LLVM

0 commit comments

Comments
 (0)