소스 검색

Merge pull request #431 from wesleywiser/fix_lse_on_aarch64_msvc

Don't try to build out-of-line aarch64 atomics with the msvc toolchain
Amanieu d'Antras 3 년 전
부모
커밋
0c81fa68ce
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      build.rs

+ 2 - 1
build.rs

@@ -491,8 +491,9 @@ mod c {
 
         // Include out-of-line atomics for aarch64, which are all generated by supplying different
         // sets of flags to the same source file.
+        // Note: Out-of-line aarch64 atomics are not supported by the msvc toolchain (#430).
         let src_dir = root.join("lib/builtins");
-        if target_arch == "aarch64" {
+        if target_arch == "aarch64" && target_env != "msvc" {
             // See below for why we're building these as separate libraries.
             build_aarch64_out_of_line_atomics_libraries(&src_dir, cfg);