https://bugs.llvm.org/show_bug.cgi?id=48618

            Bug ID: 48618
           Summary: [CMake] libcxx_tsan_x86_64:
                    projects/compiler-rt/lib/tsan/libcxx_tsan_x86_64-bins/
                    cxx/__config_site does not respect LIBCXX_* variables
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Keywords: build-problem
          Severity: enhancement
          Priority: P
         Component: tsan
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

(With https://reviews.llvm.org/D93848 , `ninja tsan` will build on musl)

cmake -GNinja -Hllvm -BRelease -DCMAKE_BUILD_TYPE=Release
-DLLVM_ENABLE_PROJECTS='clang;lld;libunwind;compiler-rt;libcxx;libcxxabi'
-DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-alpine-linux-musl
-DLLVM_TARGETS_TO_BUILD=X86 -DLIBCXX_HAS_MUSL_LIBC=On -DLLVM_APPEND_VC_REV=OFF

Note that
Release/projects/compiler-rt/lib/tsan/libcxx_tsan_x86_64-bins/cxx/__config_site
does not define __LIBCPP_HAS_MUSL_LIBC

As a result, `ninja libcxx_tsan_x86_64` will fail to build (dependency of
`ninja check-tsan).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to