search for: cmake_generator

Displaying 20 results from an estimated 21 matches for "cmake_generator".

2014 Feb 27
2
[LLVMdev] compiler-rt CMake build
...al case for the > Makefile generators to make with $(MAKE) instead of "make": > > > http://cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/ExternalProject.cmake;hb=v2.8.12.2#l846 > > so that flags like -j propagate automatically. You could do > that too: > > if(CMAKE_GENERATOR MATCHES "Make") > set(check_compiler_rt "$(MAKE)" "check-all") > else() > set(check_compiler_rt ${CMAKE_COMMAND} --build . > --target check-all --config $<CONFIGURATION>) > endif() > > ExternalProject_Get_Property(compiler...
2014 Feb 26
2
[LLVMdev] compiler-rt CMake build
Hi Brad, Thanks for investigating this. Do you think it makes sense to land my ExternalProject_Add patch so that others can experiment with it? I can add quit with a fatal_error/warning if the build tree rules are generated with Ninja. However, there is a problem with Unix Makefiles as well: parallelism doesn't work when I run "make check-compiler-rt -j8" in the original build tree,
2016 Mar 12
4
Building with LLVM_PARALLEL_XXX_JOBS
...;-DLLVM_PARALLEL_COMPILE_JOBS=$COMPILE_JOBS -DLLVM_PARALLEL_LINK_JOBS=$LINK_JOBS" # Cmake linker options (here: Use binutils-gold to speedup build) LINKER="/usr/bin/ld.gold" CMAKE_LINKER="$LINKER" CMAKE_LINKER_OPTS="-DCMAKE_LINKER=$CMAKE_LINKER" # CMake Generators CMAKE_GENERATORS="Ninja" GENERATORS_CMAKE_OPTS="-G $CMAKE_GENERATORS" # CMake configure settings PREFIX_CMAKE_OPTS="-DCMAKE_INSTALL_PREFIX=$PREFIX" OPTIMIZED_CMAKE_OPTS="-DCMAKE_BUILD_TYPE=RELEASE" ASSERTIONS_CMAKE_OPTS="-DLLVM_ENABLE_ASSERTIONS=ON" TARGETS_CMAKE_O...
2014 Mar 21
2
[LLVMdev] compiler-rt CMake build
...t;make": > >> > >> > >> > http://cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/ExternalProject.cmake;hb=v2.8.12.2#l846 > >> > >> so that flags like -j propagate automatically. You could do > >> that too: > >> > >> if(CMAKE_GENERATOR MATCHES "Make") > >> set(check_compiler_rt "$(MAKE)" "check-all") > >> else() > >> set(check_compiler_rt ${CMAKE_COMMAND} --build . > >> --target check-all --config $<CONFIGURATION>) > >> endif() >...
2017 Dec 15
2
llvm-config output on MacOS
Thanks for your reply, Paul. That seems to be a plausible explanation. I ended up adding code in my project to massage the output of llvm-config to the right paths based of the values of CMAKE_GENERATOR and build-mode. Bharadwaj On Dec 15, 2017 9:46 AM, "Robinson, Paul" <paul.robinson at sony.com> wrote: It may be that llvm-config simply doesn't understand a multi-configuration build tree. Ninja and make use single-configuration trees, XCode and Visual Studio use multi-con...
2016 Feb 25
1
Building with LLVM_PARALLEL_XXX_JOBS
...build/CMakeCache.txt //Program used to build from build.ninja files. CMAKE_MAKE_PROGRAM:FILEPATH=/opt/cmake/bin/ninja //Define the maximum number of concurrent compilation jobs. LLVM_PARALLEL_COMPILE_JOBS:STRING=3 //Define the maximum number of concurrent link jobs. LLVM_PARALLEL_LINK_JOBS:STRING=1 CMAKE_GENERATOR:INTERNAL=Ninja $ LC_ALL=C ls -alt logs/3.8.0rc3_clang-3-8-0-rc3_cmake-3-4-3_ninja-1-6-0/ total 360 drwxr-xr-x 2 wearefam wearefam 4096 Feb 25 19:58 . drwxr-xr-x 6 wearefam wearefam 4096 Feb 25 19:58 .. -rw-r--r-- 1 wearefam wearefam 130196 Feb 25 19:54 install-log_llvm-toolchain-3.8.0rc3.txt -...
2016 Mar 01
2
Building with LLVM_PARALLEL_XXX_JOBS
...d.ninja files. >> CMAKE_MAKE_PROGRAM:FILEPATH=/opt/cmake/bin/ninja >> //Define the maximum number of concurrent compilation jobs. >> LLVM_PARALLEL_COMPILE_JOBS:STRING=3 >> //Define the maximum number of concurrent link jobs. >> LLVM_PARALLEL_LINK_JOBS:STRING=1 >> CMAKE_GENERATOR:INTERNAL=Ninja >> >> $ LC_ALL=C ls -alt logs/3.8.0rc3_clang-3-8-0-rc3_cmake-3-4-3_ninja-1-6-0/ >> total 360 >> drwxr-xr-x 2 wearefam wearefam 4096 Feb 25 19:58 . >> drwxr-xr-x 6 wearefam wearefam 4096 Feb 25 19:58 .. >> -rw-r--r-- 1 wearefam wearefam 130196...
2014 Jul 23
2
[LLVMdev] [patch] EXPORTED_SYMBOL_FILE using mingw and cmake
Changing it to only apply to the MinGW-Makefiles generator is maybe the safest method. Though you would have to check if MINGW is only set in the Mingw-Makefiles generator and not In the MSYS-Makefiles or Cygwin generators (should be in the docs). -- Johannes S. Mueller-Roemer, MSc Wiss. Mitarbeiter - Interactive Engineering Technologies (IET) Fraunhofer-Institut für Graphische Datenverarbeitung
2017 Oct 18
2
LLVM cross-compilation cmake issues
...r "-DLLVM_EXTERNAL_CLANG_SOURCE_DIR=${LLVM_EXTERNAL_CLANG_SOURCE_DIR}") endif() + unset(ENV{ASM}) + unset(ENV{CC}) + unset(ENV{CXX}) execute_process(COMMAND ${CMAKE_COMMAND} ${build_type_flags} -G "${CMAKE_GENERATOR}" -DLLVM_TARGETS_TO_BUILD=${LLVM_TARGETS_TO_BUILD} ${CROSS_TOOLCHAIN_FLAGS_${target_name}} ${CMAKE_SOURCE_DIR} It would be more proper to save the values of these environment variables at the start of the configure (before any project command is ru...
2014 Mar 23
2
[LLVMdev] compiler-rt CMake build
...; >> > http://cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/ExternalProject.cmake;hb=v2.8.12.2#l846 > >> >> > >> >> so that flags like -j propagate automatically. You could do > >> >> that too: > >> >> > >> >> if(CMAKE_GENERATOR MATCHES "Make") > >> >> set(check_compiler_rt "$(MAKE)" "check-all") > >> >> else() > >> >> set(check_compiler_rt ${CMAKE_COMMAND} --build . > >> >> --target check-all --config $<CONFIGURATI...
2016 Mar 01
2
Building with LLVM_PARALLEL_XXX_JOBS
...LEPATH=/opt/cmake/bin/ninja > >>> //Define the maximum number of concurrent compilation jobs. > >>> LLVM_PARALLEL_COMPILE_JOBS:STRING=3 > >>> //Define the maximum number of concurrent link jobs. > >>> LLVM_PARALLEL_LINK_JOBS:STRING=1 > >>> CMAKE_GENERATOR:INTERNAL=Ninja > >>> > >>> $ LC_ALL=C ls -alt > logs/3.8.0rc3_clang-3-8-0-rc3_cmake-3-4-3_ninja-1-6-0/ > >>> total 360 > >>> drwxr-xr-x 2 wearefam wearefam 4096 Feb 25 19:58 . > >>> drwxr-xr-x 6 wearefam wearefam 4096 Feb 25 19:58 ....
2016 Mar 02
2
Building with LLVM_PARALLEL_XXX_JOBS
...n/ninja >> >>> //Define the maximum number of concurrent compilation jobs. >> >>> LLVM_PARALLEL_COMPILE_JOBS:STRING=3 >> >>> //Define the maximum number of concurrent link jobs. >> >>> LLVM_PARALLEL_LINK_JOBS:STRING=1 >> >>> CMAKE_GENERATOR:INTERNAL=Ninja >> >>> >> >>> $ LC_ALL=C ls -alt >> logs/3.8.0rc3_clang-3-8-0-rc3_cmake-3-4-3_ninja-1-6-0/ >> >>> total 360 >> >>> drwxr-xr-x 2 wearefam wearefam 4096 Feb 25 19:58 . >> >>> drwxr-xr-x 6 wearefam wearef...
2016 Mar 03
2
Building with LLVM_PARALLEL_XXX_JOBS
...; //Define the maximum number of concurrent compilation jobs. >>>>>>> LLVM_PARALLEL_COMPILE_JOBS:STRING=3 >>>>>>> //Define the maximum number of concurrent link jobs. >>>>>>> LLVM_PARALLEL_LINK_JOBS:STRING=1 >>>>>>> CMAKE_GENERATOR:INTERNAL=Ninja >>>>>>> >>>>>>> $ LC_ALL=C ls -alt >>>> logs/3.8.0rc3_clang-3-8-0-rc3_cmake-3-4-3_ninja-1-6-0/ >>>>>>> total 360 >>>>>>> drwxr-xr-x 2 wearefam wearefam 4096 Feb 25 19:58 . >>>&...
2014 Jul 23
2
[LLVMdev] [patch] EXPORTED_SYMBOL_FILE using mingw and cmake
...___________________ From: Dan Liew [dan at su-root.co.uk] Sent: Wednesday, July 23, 2014 10:38 AM To: Mueller-Roemer, Johannes Sebastian Cc: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] [patch] EXPORTED_SYMBOL_FILE using mingw and cmake Okay I guess the test would be something like this then if (CMAKE_GENERATOR STREQUAL "MinGW Makefiles") # mingw workaround, as file(TO_NATIVE_PATH ...) is implemented incorrectly # See http://public.kitware.com/Bug/print_bug_page.php?bug_id=5939 string(REPLACE / \\ export_file_backslashes "${export_file}") else() file(TO_NATIVE_PATH "${expo...
2016 Feb 25
4
Building with LLVM_PARALLEL_XXX_JOBS
On Thu, Feb 25, 2016 at 7:37 AM, Mehdi Amini <mehdi.amini at apple.com> wrote: > >> On Feb 24, 2016, at 9:55 PM, Sedat Dilek via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> >> Hi, >> >> I switched from "configure and make" to "cmake" build-system and >> wanted to speedup my build. >> >> In my build-script I
2016 Feb 26
0
[LLVM v3.8.0rc3] cmake-2.8.12: Statistics gcc-4.9 VS. clang-3.8
...obs-1/CMakeCache.txt //Program used to build from build.ninja files. CMAKE_MAKE_PROGRAM:FILEPATH=/opt/cmake/bin/ninja //Define the maximum number of concurrent compilation jobs. LLVM_PARALLEL_COMPILE_JOBS:STRING=2 //Define the maximum number of concurrent link jobs. LLVM_PARALLEL_LINK_JOBS:STRING=1 CMAKE_GENERATOR:INTERNAL=Ninja $ cd statistics/3.8.0rc3_clang-3-8-0-rc3_cmake-3-4-3_ninja-1-6-0_compile-jobs-2_link-jobs-1/ $ cat disc-usage_llvm-toolchain-3.8.0rc3_clang-3-8-0-rc3_cmake-3-4-3_ninja-1-6-0_compile-jobs-2_link-jobs-1.txt 315 llvm 941 llvm-build 609 /opt/llvm-toolchain-3.8.0rc3 $ cat b...
2016 Mar 03
3
Building with LLVM_PARALLEL_XXX_JOBS
...concurrent compilation jobs. >>>>>>>>> LLVM_PARALLEL_COMPILE_JOBS:STRING=3 >>>>>>>>> //Define the maximum number of concurrent link jobs. >>>>>>>>> LLVM_PARALLEL_LINK_JOBS:STRING=1 >>>>>>>>> CMAKE_GENERATOR:INTERNAL=Ninja >>>>>>>>> >>>>>>>>> $ LC_ALL=C ls -alt >>>>>> logs/3.8.0rc3_clang-3-8-0-rc3_cmake-3-4-3_ninja-1-6-0/ >>>>>>>>> total 360 >>>>>>>>> drwxr-xr-x 2 wearefam weare...
2017 Dec 15
2
llvm-config output on MacOS
Hi, I configured and built LLVM as follows on Mac OS 10.13.2: $ pwd <llvm-build-dir> $ cmake -G "Xcode" -DCMAKE_INSTALL_PREFIX=<llvm-install-dir> -DLLVM_ENABLE_PIC=0 <llvm-src-dir>/llvm $ xcodebuild -project LLVM.xcodeproj All binaries are in <llvm-build-dir>/Debug/bin. I am interested in using the output of llvm-config. Now, when I run $
2016 Mar 17
2
Building with LLVM_PARALLEL_XXX_JOBS
On Mon, Mar 14, 2016 at 5:30 PM, Chris Bieneman <cbieneman at apple.com> wrote: [ brutal-snip ] ... > [ TODO#S: Before doing a 2nd build (and in a 3rd run using more > optimized binaries) ] > > How do I anable LTO via CMAKE? > > > LLVM_ENALBLE_LTO=On > [ v4 of my build-script attached ] Hi Chris, thanks for the response! That seems to work (see below). $ cd
2017 Feb 11
2
Asan self host problems: Failed to deallocate
Trying to run a self host "ninja check-clang" with ASan enabled I hit a /lot/ of errors like this (strangely I hit none of these in check-llvm, only in check-clang): Any ideas? ==10525==ERROR: AddressSanitizer failed to deallocate 0x10800 (67584) bytes at address 0x631000014800 ==10525==AddressSanitizer CHECK failed: