Skip to content

Commit 068c14c

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

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
@@ -265,6 +265,10 @@ impl Step for Llvm {
265265
cfg.define("CMAKE_LIBTOOL", libtool);
266266
}
267267

268+
if env::var_os("LLVM_ENABLE_RTTI").is_some() {
269+
cfg.define("LLVM_ENABLE_RTTI", "YES");
270+
}
271+
268272
configure_cmake(builder, target, &mut cfg);
269273

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

0 commit comments

Comments
 (0)