<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - '-stdlib=libc++' unused during compilation"
   href="http://llvm.org/bugs/show_bug.cgi?id=19120">19120</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>'-stdlib=libc++' unused during compilation
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Build scripts
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>cmake
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>oroppas@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>LLVM_ENABLE_LIBCXX:BOOL=ON appends '-stdlib=libc++' to CMAKE_CXX_FLAGS,
CMAKE_EXE_LINKER_FLAGS, CMAKE_SHARED_LINKER_FLAGS, and
CMAKE_MODULE_LINKER_FLAGS, however, the flag conflict with '-nostdinc++' used
during the build process of libcxx:

/usr/bin/clang++   -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dcxx_EXPORTS -march=native
-mtune=native -flto -pipe -fstack-protector --param=ssp-buffer-size=4 
-stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter
-Wwrite-strings -Wmissing-field-initializers -pedantic -Wno-long-long
-Wcovered-switch-default -Wnon-virtual-dtor -std=c++11 -fcolor-diagnostics
-ffunction-sections -fdata-sections -nostdinc++ -Werror=return-type -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error -pedantic  -O3
-DNDEBUG -fPIC -Iprojects/libcxx/lib
-I/home/ryuta/devel/llvm/src/llvm/projects/libcxx/lib -Iinclude
-I/home/ryuta/devel/llvm/src/llvm/include
-I/home/ryuta/devel/llvm/src/llvm/projects/libcxx/include    -Werror -fPIC -MMD
-MT projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/utility.cpp.o -MF
"projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/utility.cpp.o.d" -o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/utility.cpp.o -c
/home/ryuta/devel/llvm/src/llvm/projects/libcxx/src/utility.cpp

clang-3.5: warning: argument unused during compilation: '-stdlib=libc++'

We can either set '-stdlib=libc++' a bit more carefully on llvm/cmake side or
remove this particular flag later on libcxx/cmake side.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>