Skip to content

Commit 72c0856

Browse files
authored
Merge pull request #519 from Amanieu/ohos
2 parents 68cf2e9 + 7eb017c commit 72c0856

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.rs

+5
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,11 @@ mod c {
508508
cfg.define("LONG_BIT", "(8 * sizeof(long))");
509509
}
510510

511+
// OpenHarmony also uses emulated TLS.
512+
if target_env == "ohos" {
513+
sources.extend(&[("__emutls_get_address", "emutls.c")]);
514+
}
515+
511516
// When compiling the C code we require the user to tell us where the
512517
// source code is, and this is largely done so when we're compiling as
513518
// part of rust-lang/rust we can use the same llvm-project repository as

0 commit comments

Comments
 (0)