search for: cmake_cxx_compiler

Displaying 20 results from an estimated 41 matches for "cmake_cxx_compiler".

Did you mean: dcmake_cxx_compiler
2017 Aug 24
3
Building LLVM's fuzzers
George Karpenkov <ekarpenkov at apple.com> writes: > Should -DCMAKE_CXX_COMPILER be also specified? CMake is smart enough to infer that from C_COMPILER: % grep CMAKE_CXX_COMPILER CMakeCache.txt CMAKE_CXX_COMPILER:FILEPATH=/Users/bogner/llvm-lkgc/bin/clang++ >> On Aug 24, 2017, at 11:29 AM, Justin Bogner <mail at justinbogner.com> wrote: >> >> (kc...
2020 Sep 17
3
llvm cross compilation issue
...olchain file where I have specified the target system and compilers as suggested at https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#cross-compilation-tool chain: set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_SYSTEM_PROCESSOR arm) set(CMAKE_C_COMPILER arm-unknown-linux-gnueabi-gcc) set(CMAKE_CXX_COMPILER arm-unknown-linux-gnueabi-g++) But the problem is that native tools like llvm-config, llvm-tblgen and clang-tblgen, which must be built by the native compiler, are also created by the target compiler. What cmake / "toolchain file" options should I use to use the native (host) compiler f...
2017 Aug 19
1
Which is the best compiler to build LLVM 5.0.0 rc2?
...works, although there are still some warnings. gcc 6.4 and gcc 7.1 fail with errors such as this in building libcxxabi as follows: Command: /opt/cmake/bin/cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/home/fletcher/LLVM/llvm-5.0.rc2/local_71 -DCMAKE_C_COMPILER=/opt/gcc-7.1/bin/gcc CMAKE_CXX_COMPILER=/opt/gcc-7.1/bin/g++ -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_TARGETS_TO_BUILD="host" -DCMAKE_CXX_FLAGS="-std=c++11 -I/opt/gcc-7.1/include/c++/7.1.0" -DCMAKE_EXE_LINKER_FLAGS="-Xlinker -R/opt/gcc-7.1/lib64 -L/opt/gcc-7.1/lib64" ../llvm First Error:...
2014 Apr 04
2
[LLVMdev] Building sanitizers for Android
...E_CURRENT_BINARY_DIR}/lib/clang/${CLANG_VERSION}/x86_64-linux" >> >> >> >> >> >> 4) Remove multi-arch support from the compiler-rt build. Instead, >> >> declare compiler-rt as an "any-arch" build, configured with: >> >> CMAKE_CXX_COMPILER (defaults to just-built-clang) >> >> CMAKE_CXX_FLAGS (defaults to llvm's default target) >> >> COMPILER_RT_TEST_COMPILER (defaults to CMAKE_CXX_COMPILER) >> >> COMPILER_RT_TEST_FLAGS (defaults to CMAKE_CXX_FLAGS) >> > >> > >&g...
2017 Dec 26
2
Bootstrapping LLVM+LLD with GCC toolchain failure
Hello, I have a working GCC toolchain and wanted to use LLVM tooling instead. Following the instructions on the website I set up my build directory and have lld as an internal project under tools/. I'd like to make use of lld in stage 2 of the build and thought -DLLVM_ENABLE_LLD was the correct option to pass. However, adding this options makes the configure step fail, complaining that the
2014 Apr 03
2
[LLVMdev] Building sanitizers for Android
...NSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/lib/clang/${CLANG_VERSION}/x86_64-linux" > >> > >> > >> 4) Remove multi-arch support from the compiler-rt build. Instead, > >> declare compiler-rt as an "any-arch" build, configured with: > >> CMAKE_CXX_COMPILER (defaults to just-built-clang) > >> CMAKE_CXX_FLAGS (defaults to llvm's default target) > >> COMPILER_RT_TEST_COMPILER (defaults to CMAKE_CXX_COMPILER) > >> COMPILER_RT_TEST_FLAGS (defaults to CMAKE_CXX_FLAGS) > > > > > > Unfortunately, t...
2013 May 29
0
[LLVMdev] compiler-rt tests in cmake?
...atforms/Android.cmake index 72849b1..5f732ce 100644 --- a/cmake/platforms/Android.cmake +++ b/cmake/platforms/Android.cmake @@ -11,8 +11,15 @@ # make <target> SET(CMAKE_SYSTEM_NAME Linux) + +IF(NOT CMAKE_C_COMPILER) SET(CMAKE_C_COMPILER ${CMAKE_BINARY_DIR}/../bin/clang) +ENDIF() + +IF(NOT CMAKE_CXX_COMPILER) SET(CMAKE_CXX_COMPILER ${CMAKE_BINARY_DIR}/../bin/clang++) +ENDIF() + SET(ANDROID "1" CACHE STRING "ANDROID" FORCE) SET(ANDROID_COMMON_FLAGS "-target arm-linux-androideabi --sysroot=${LLVM_ANDROID_TOOLCHAIN_DIR}/sysroot -B${LLVM_ANDROID_TOOLCHAIN_DIR} -mllvm -arm-enabl...
2014 Apr 02
3
[LLVMdev] Building sanitizers for Android
...the compiler-rt libs go. > > "CMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/lib/clang/${CLANG_VERSION}/x86_64-linux" > > 4) Remove multi-arch support from the compiler-rt build. Instead, > declare compiler-rt as an "any-arch" build, configured with: > CMAKE_CXX_COMPILER (defaults to just-built-clang) > CMAKE_CXX_FLAGS (defaults to llvm's default target) > COMPILER_RT_TEST_COMPILER (defaults to CMAKE_CXX_COMPILER) > COMPILER_RT_TEST_FLAGS (defaults to CMAKE_CXX_FLAGS) > Unfortunately, this could be problematic for Mac - we use "uni...
2014 Apr 05
2
[LLVMdev] Building sanitizers for Android
...VERSION}/x86_64-linux" >>>> >> >>>> >> >>>> >> 4) Remove multi-arch support from the compiler-rt build. Instead, >>>> >> declare compiler-rt as an "any-arch" build, configured with: >>>> >> CMAKE_CXX_COMPILER (defaults to just-built-clang) >>>> >> CMAKE_CXX_FLAGS (defaults to llvm's default target) >>>> >> COMPILER_RT_TEST_COMPILER (defaults to CMAKE_CXX_COMPILER) >>>> >> COMPILER_RT_TEST_FLAGS (defaults to CMAKE_CXX_FLAGS) >>&g...
2018 May 02
0
Mac downloads at http://releases.llvm.org/download.html recently requiring latest MacOS
How is -mmacosx-version-min=10.9 being set? LLVM_COMPILE_FLAGS? Or CMAKE_CXX_COMPILE? > On May 2, 2018, at 19:22, Vedant Kumar via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > I described this off-list to Zac, but for anyone else who is following, simply specifying the target triple is not enough to have the build system set an older macOS deployment target. I.e the 6.0.0-rc1
2020 Nov 05
1
How to use mainline clang/llvm with CMake
...r this is a right place to ask basic questions about usage of CLang/LLVM, but also not sure if there is any other mailing list for such. Kindly point me to such a list in such case. I had built mainline CLang/LLVM on OSX and tried to use it with CMake. I had override following variables in CMake: CMAKE_CXX_COMPILER=${LLVM_INSTALL_PATH}/_install/Toolchains/LLVM12.0.0git.xctoolchain/usr/bin/clang++ CMAKE_CXX_STANDARD_LIBRARIES=${LLVM_INSTALL_PATH}/_install/Toolchains/LLVM12.0.0git.xctoolchain/usr/lib CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES=${LLVM_INSTALL_PATH}/_install/Toolchains/LLVM12.0.0git.xctoolchain/usr/in...
2016 Nov 25
27
[Bug 98852] New: Nvidia graphics card fan not running or to slow, danger of overheating
https://bugs.freedesktop.org/show_bug.cgi?id=98852 Bug ID: 98852 Summary: Nvidia graphics card fan not running or to slow, danger of overheating Product: xorg Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium
2014 Oct 23
2
[LLVMdev] compiler-rt with MSVC 2013
...e not be built correctly. Missing variable is: CMAKE_C_COMPILER CMake Error: Could not find cmake module file: E:/llvm/compiler-rt-ninja/CMakeFi les/2.8.12.2/CMakeCCompiler.cmake CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER CMake Error: Could not find cmake module file: E:/llvm/compiler-rt-ninja/CMakeFi les/2.8.12.2/CMakeCXXCompiler.cmake -- Configuring incomplete, errors o...
2014 Apr 01
2
[LLVMdev] Building sanitizers for Android
...gt; this a build configuration you'd consider using? >> >>>> >> >>>> $ cmake -G Ninja .. \ >> >>>> -DCMAKE_INSTALL_PREFIX=ship \ >> >>>> -DCMAKE_C_COMPILER=arm-linux-androideabi-gcc \ >> >>>> -DCMAKE_CXX_COMPILER=arm-linux-androideabi-g++ \ >> >>>> -DCMAKE_PREFIX_PATH=`pwd`/../../llvm/out/ship \ >> >>>> -DANDROID=1 \ >> >>>> -DCMAKE_SYSTEM_NAME=Linux \ >> >>>> -DCMAKE_C_FLAGS=--sysroot=$(ndkDir)/platforms/android-19/arch...
2016 Sep 27
4
(Thin)LTO llvm build
On Tue, Sep 27, 2016 at 6:53 AM, Mehdi Amini <mehdi.amini at apple.com> wrote: > > > > On Sep 27, 2016, at 2:18 AM, Carsten Mattner <carstenmattner at gmail.com> > wrote: > > > >> On Mon, Sep 26, 2016 at 11:02 PM, Teresa Johnson <tejohnson at google.com> > wrote: > >> I'll either need to get a reproducer from you and/or try to repro
2014 Apr 16
3
[LLVMdev] Building sanitizers for Android
...>> >> >> >>>> >> >> >>>> >> 4) Remove multi-arch support from the compiler-rt build. Instead, >> >>>> >> declare compiler-rt as an "any-arch" build, configured with: >> >>>> >> CMAKE_CXX_COMPILER (defaults to just-built-clang) >> >>>> >> CMAKE_CXX_FLAGS (defaults to llvm's default target) >> >>>> >> COMPILER_RT_TEST_COMPILER (defaults to CMAKE_CXX_COMPILER) >> >>>> >> COMPILER_RT_TEST_FLAGS (defaults to...
2018 May 02
2
Mac downloads at http://releases.llvm.org/download.html recently requiring latest MacOS
I described this off-list to Zac, but for anyone else who is following, simply specifying the target triple is not enough to have the build system set an older macOS deployment target. I.e the 6.0.0-rc1 binaries I've just uploaded have the same deployment target problem. Looking at the 5.0.0 and 6.0.0-rc1 binaries, I can confirm that their deployment target was too new: Load command 9
2015 Jul 28
3
[LLVMdev] Purpose of LLVM_ENABLE_LIBCXX and LLVM_ENABLE_LIBCXXABI
...tions to change the default behaviour of the compiler > at build time. > > I may be wrong, though. yes I thought that was what he wanted because he said Are they used to indicate that if the C/C++ compiler for building LLVM is > clang > That combined with the standard cmake flags cmake_cxx_compiler and cmake_c_compiler should result in the host being clang and using libc++ and libc++abi I was a little thrown off by the wording of the question I think you are more correct though I misread the second part of the question where he said what he actually wanted the resulting compiler to use libc++...
2010 Aug 02
0
[LLVMdev] CMake broken?
Tom Care <tcare at apple.com> writes: > This was after starting with an empty build directory. It seems to > work if I omit -DLLVM_TARGETS_TO_BUILD=X86, but a few days ago this > was working with just this target. Yep. I can replicate the problem on Linux with mkdir foo && cd foo cmake -DLLVM_TARGETS_TO_BUILD=X86 ../llvm I'll investigate a bit.
2013 May 23
0
[LLVMdev] Deprecating autoconf/make?
...me that the variable for specifying the toolchain file was unused when I set it on the command line, and none of the variables were propagated. It's been about a month since I tried though, so it may have been fixed. I get that warning, but it works anyway. Some of the options are forwarded (CMAKE_CXX_COMPILER being particularly important) others just disappear (presumably having done their job). >> Do you also see the "make -j9 dies" issue? > > I use ninja -j64 and it works fine. Hmm. There must be something odd in my setup. I wonder if the two are linked in some bizarre way… T...