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

            Bug ID: 35912
           Summary: Warning on CMake "cant' specify libc++ with
                    '-stdlib='"
           Product: clang
           Version: trunk
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: macdo...@msu.edu
                CC: llvm-bugs@lists.llvm.org

When trying to run CMake on the trunk version of llvm, I get the error 

Performing Test CXX_SUPPORTS_STDLIB
-- Performing Test CXX_SUPPORTS_STDLIB - Failed
CMake Warning at cmake/modules/HandleLLVMStdlib.cmake:24 (message):
  Can't specify libc++ with '-stdlib='
Call Stack (most recent call first):
  cmake/config-ix.cmake:16 (include)
  CMakeLists.txt:578 (include)

I am using rhel and am following the instructions on this page
http://clang.llvm.org/get_started.html

The previous install had an issue with trying to compile a c++ file that was
using  libc++ <atomic> header. so trying to reinstall llvm and clang and adding
in the options in llvm/CMakelists.txt 
option(LLVM_ENABLE_CXX1Y "Compile with C++1y enabled." ON)
option(LLVM_ENABLE_CXX1Z "Compile with C++1z enabled." ON)
option(LLVM_ENABLE_LIBCXX "Use libc++ if available." ON)

the warning only appears if the LLVM_ENABLE_LIBCX is turned on.

let me know if i can supply any more information to help

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to