Displaying 7 results from an estimated 7 matches for "dcmake_cxx_link_flags".
2016 Mar 14
2
LLVM-3.8.0 libcxx in-tree build fails with cmath error ::signbit has not been declared
...been declared
...
My environment is...
Glibc-2.12.1
Binutils-2.24
Gcc-4.92.
Llvm-3.8.0
Cmake flags...
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_CXX_COMPILER=$GCC_ROOT/bin/g++ \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_CXX_LINK_FLAGS="$LDFLAGS" \
-DCMAKE_C_COMPILER=$GCC_ROOT/bin/gcc \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DCMAKE_C_LINK_FLAGS="$LDFLAGS" \
-DCMAKE_INSTALL_PREFIX=$PREFIX_DIR \
-DCMAKE_LIBRARY_PATH=${BASE_DIR}/lib \
-DCMAKE_SKIP_INSTALL_RPATH=OFF \...
2016 Mar 14
2
LLVM-3.8.0 libcxx in-tree build fails with cmath error ::signbit has not been declared
...ronment is...
Glibc-2.12.1
Binutils-2.24
Gcc-4.92.
Llvm-3.8.0
Cmake flags...
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_CXX_COMPILER=$GCC_ROOT/bin/g++ \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_CXX_LINK_FLAGS="$LDFLAGS" \
-DCMAKE_C_COMPILER=$GCC_ROOT/bin/gcc \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DCMAKE_C_LINK_FLAGS="$LDFLAGS" \
-DCMAKE_INSTALL_PREFIX=$PREFIX_DIR \
-DCMAKE_LIBRARY_PATH=${BASE_DIR}/lib \
-DCMAKE_SKIP_INSTALL_RPATH=OFF \...
2019 Feb 20
3
How do I run llvm's asan tests?
...make install
# Clone llvm and try to test it.
mkdir -p ~/clients
cd ~/clients
git clone https://github.com/llvm/llvm-project.git
# Get a coffee
cd llvm-project
mkdir build
cd build
CC=$HOME/toolchains/bin/gcc CXX=$HOME/toolchains/bin/g++ \
cmake -G Ninja
-DCMAKE_CXX_LINK_FLAGS="-Wl,-rpath,$HOME/toolchains/lib64
-L$HOME/toolchains/lib64"
-DLLVM_ENABLE_PROJECTS='clang;compiler-rt;libcxx;libcxxabi' ../llvm
ninja check-asan
# Get another coffee
After about 30 minutes, the ninja command fails with an error about how the
string header isn't found...
2015 Jul 08
2
[LLVMdev] Building clang + libc++ + libc++abi
[Sorry about the crosspost. Since this is a clang build question but
the build is invoked from the top-level LLVM directory I'm not sure
where the question should go.]
I've got a clang build against libstdc++ on Linux but I would really
like one built against libc++/libc++abi. In other words I'd like to
rebuild clang/llvm with clang using libc++ and libc++abi on Linux.
I looked at
2018 May 31
1
Hang generating sanitizer tests
Just to follow-up, I'm now encountering this as well. I'm doing this on Linux.
It seems that when linking with the most-recently built clang, the
unit tests are taking a while to complete. It's notably not using more
than 1 thread, and if using `lld` I would have expected the linker to
still be running in parallel.
I'm doing this on a debug build, so that might help narrow it
2015 Jul 08
2
[LLVMdev] [cfe-dev] Building clang + libc++ + libc++abi
...ariable controls those? The
> > Google tells me nothing.
>
> I discovered CMAKE_CXX_LINK_FLAGS. So I'm configuring like this:
>
> cmake -G "Unix Makefiles" -DCMAKE_C_COMPILER=clang
> -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="-stdlib=libc++"
> -DCMAKE_CXX_LINK_FLAGS="-stdlib=libc++ -lc++abi
> -DPYTHON_EXECUTABLE=/opt/python/2.7.9/bin/python2.7
> -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/clang/dev
> -DLLVM_APPEND_VC_REV=ON -DLLVM_ENABLE_CXX1Y=ON -DLLVM_ENABLE_ASSERTIONS=ON
> -DLLVM_PARALLEL_COMPILE_JOBS=32 -DLLVM_PARALLEL_LINK_JOBS...
2015 Sep 09
5
Building LLVM and Clang using Clang?
Try as I might I can't seem to get LLVM to bulid using clang/clang++.
No matter what I do it insists on using /usr/bin/cc and /usr/bin/c++
which are gcc. Am I missing something obvious? I vaguely remember some
document describing a stage1 compiler built by your old toolchain and
a stage2 compiler but I can't find the steps to do that any more.
$ CC=/usr/local/bin/clang