Skip to content

Commit b981403

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/native.rs

+4
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,10 @@ impl Step for Llvm {
319319
cfg.define("CMAKE_LIBTOOL", libtool);
320320
}
321321

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

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

0 commit comments

Comments
 (0)