[llvm-bugs] [Bug 48618] New: [CMake] libcxx_tsan_x86_64: projects/compiler-rt/lib/tsan/libcxx_tsan_x86_64-bins/cxx/__config_site does not respect LIBCXX_* variables

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Dec 28 21:14:40 PST 2020


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: unassignedbugs at nondot.org
          Reporter: i at maskray.me
                CC: llvm-bugs at lists.llvm.org

(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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201229/9808d7a8/attachment.html>


More information about the llvm-bugs mailing list