We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 68cf2e9 + 7eb017c commit 72c0856Copy full SHA for 72c0856
build.rs
@@ -508,6 +508,11 @@ mod c {
508
cfg.define("LONG_BIT", "(8 * sizeof(long))");
509
}
510
511
+ // OpenHarmony also uses emulated TLS.
512
+ if target_env == "ohos" {
513
+ sources.extend(&[("__emutls_get_address", "emutls.c")]);
514
+ }
515
+
516
// When compiling the C code we require the user to tell us where the
517
// source code is, and this is largely done so when we're compiling as
518
// part of rust-lang/rust we can use the same llvm-project repository as
0 commit comments