Skip to content

Commit 5d8aa13

Browse files
committed
Introduced LLVM_ENABLE_RTTI
The better approach is backported to upstream as rust-lang/rust#93640
1 parent 8d0e918 commit 5d8aa13

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
@@ -297,6 +297,10 @@ impl Step for Llvm {
297297
cfg.define("CMAKE_LIBTOOL", libtool);
298298
}
299299

300+
if env::var_os("LLVM_ENABLE_RTTI").is_some() {
301+
cfg.define("LLVM_ENABLE_RTTI", "YES");
302+
}
303+
300304
configure_cmake(builder, target, &mut cfg);
301305

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

0 commit comments

Comments
 (0)