search for: dcmake_export_compile_command

Displaying 20 results from an estimated 31 matches for "dcmake_export_compile_command".

2019 Sep 03
2
Struggling with a PGO build of clang -- llvm-profdata was built without zlib support?
...by hand, so I went for that. Here are my steps: * Built a release version of LLVM/Clang/LLD/compiler-rt on version 9.0.0-rc3 * Built an instrumented clang with the following config: cmake -G Ninja ../llvm \ -DLLVM_ENABLE_PROJECTS='clang;compiler-rt' \ -DLLVM_TARGETS_TO_BUILD=X86 \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ -DCMAKE_CXX_COMPILER=/path/to/release_build/bin/clang++ \ -DCMAKE_C_COMPILER=/path/to/release_build/bin/clang \ -DLLVM_USE_LINKER=/path/to/release_build/bin/ld.lld \ -DLLVM_CCACHE_BUILD=ON \ -DLLVM_BUILD_INSTRUMENTED=IR \ -DLLVM_BUILD_RUNTIME=No \ -DLLVM_ENABLE_ZLIB=1 \ -DCMAK...
2019 Sep 03
2
Struggling with a PGO build of clang -- llvm-profdata was built without zlib support?
...lease version of LLVM/Clang/LLD/compiler-rt on version >> 9.0.0-rc3 >> >> * Built an instrumented clang with the following config: >> cmake -G Ninja ../llvm \ >> -DLLVM_ENABLE_PROJECTS='clang;compiler-rt' \ >> -DLLVM_TARGETS_TO_BUILD=X86 \ >> -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ >> -DCMAKE_CXX_COMPILER=/path/to/release_build/bin/clang++ \ >> -DCMAKE_C_COMPILER=/path/to/release_build/bin/clang \ >> -DLLVM_USE_LINKER=/path/to/release_build/bin/ld.lld \ >> -DLLVM_CCACHE_BUILD=ON \ >> -DLLVM_BUILD_INSTRUMENTED=IR \ >> -DLLV...
2019 Jul 03
2
clang-tidy standalone
...le: dummy.c #include "dummy.h" #include "MISSING_module.h" // EOF dummy.h #ifndef _DUMMY_H_ #define _DUMMY_H_ #include <stdlib.h> // EOF I'm trying to execute the following command (macos) clang-tidy dummy.c -checks='-*,readability-identifier-naming' -- -DCMAKE_EXPORT_COMPILE_COMMANDS=ON` however, clang-tidy is still checking/following the includes (one of which doesn't even exist - but I'm just using it for naming convention checks), I get the following error message: dummy.h:4:10: error: 'stdlib.h' file not found [clang-diagnostic-error] #include <stdlib.h...
2015 Sep 17
2
Problems building LLVMHello, spaces in path
I recently had a problem creating LLVMHello. I used this CMake file #!/bin/sh # clangcmake.sh cmake -G "Eclipse CDT4 - Unix Makefiles" -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_ECLIPSE_VERSION=4.5 -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang ../llvm then I ran make LLVMHello and the build failed on an error about LLVMHello.export The problem turned out to be that the parent directory path had a space in one...
2019 Apr 16
3
Opt plugin linkage
...t any point when linking or loading a plugin linked against some  libs. How do I find out which llvm libs I can't link with a dynamically loaded plugin? How can I use the EngineBuilder in my plugin with proper symbol resolution? For reproductivity: cmake -G "Sublime Text 2 - Ninja" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DLLVM_EXPORT_SYMBOLS_FOR_PLUGINS=ON -DLLVM_BUILD_TESTS=ON -DLLVM_BUILD_EXAMPLES=ON -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_TOOL_CLANG_BUILD=ON -DLLVM_TOOL_CLANG_TOOLS_EXTRA=ON -DLLVM_OPTIMIZED_TABLEGEN=ON -DCLANG_BUILD_EXAMPLES=ON -DCLANG_PLUGIN_SUPPORT=ON Hope someo...
2020 Nov 17
10
wasteful cmake defaults
...ce of a choice. I took some measurements. The machine under test is an otherwise unloaded Ryzen 2 server with 6 cores / 12 threads and fast NVME SSDs running Debian sid with gcc-10.2 as the host toolchain. $ cmake ../llvm -DCMAKE_BUILD_TYPE=Debug -GNinja \ -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ... $ time ninja llc ... [1199/1199] Linking CXX executable bin/llc ninja llc 6858.95s user 218.53s system 1095% cpu 10:45.78 total and then: $ git apply <<'EOF' diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index 21563e15118..3f5821351a...
2020 Nov 18
1
wasteful cmake defaults
...he machine under test is an otherwise >> unloaded Ryzen 2 server with 6 cores / 12 threads and fast NVME SSDs >> running Debian sid with gcc-10.2 as the host toolchain. >> >> $ cmake ../llvm -DCMAKE_BUILD_TYPE=Debug -GNinja \ >> -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON >> ... >> $ time ninja llc >> ... >> [1199/1199] Linking CXX executable bin/llc >> ninja llc 6858.95s user 218.53s system 1095% cpu 10:45.78 total >> >> and then: >> >> $ git apply <<'EOF' >>...
2017 Oct 04
2
Unit tests in compiler-rt not rebuilding with changes to runtimes?
...o prototype? If not, where do you have compiler-rt's sources (llvm/projects or llvm/runtimes)? > Not the mono-repo prototype, I have the compiler-rt sources in llvm/projects/compiler-rt. > Lastly, can you provide your CMake configuration command line? cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G Ninja -DCMAKE_CXX_COMPILER=clang++-3.9 -DCMAKE_C_COMPILER=clang-3.9 -DCMAKE_ASM_COMPILER=clang-3.9 -DLLVM_USE_LINKER=gold -DLLVM_USE_SPLIT_DWARF=On -DBUILD_SHARED_LIBS=ON -DLLVM_OPTIMIZED_TABLEGEN=On -DCOMPILER_RT_BUILD_XRAY=On -DLLVM_ENABLE_ASSERTIONS=On -DCOMPILER_RT_INCLUDE_TESTS=On -DLLV...
2020 Nov 17
0
wasteful cmake defaults
...some measurements. The machine under test is an otherwise > unloaded Ryzen 2 server with 6 cores / 12 threads and fast NVME SSDs > running Debian sid with gcc-10.2 as the host toolchain. > > $ cmake ../llvm -DCMAKE_BUILD_TYPE=Debug -GNinja \ > -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON > ... > $ time ninja llc > ... > [1199/1199] Linking CXX executable bin/llc > ninja llc 6858.95s user 218.53s system 1095% cpu 10:45.78 total > > and then: > > $ git apply <<'EOF' > diff --git a/llvm/CMakeLists.txt b/llvm/CMake...
2013 Jun 29
2
[LLVMdev] does clang and llvm take more time to compile c code
The options is cmake -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_INSTALL_PREFIX=~software/llvmsvn -DCMAKE_EXPORT_COMPILE_COMMANDS=ON /home/xxx/lsoftware/llvm-3.2-svn $make $make install On Fri, Jun 28, 2013 at 12:37 PM, Eric Christopher <echristo at gmail.com>wrote: > On Thu, Jun 27, 2013 at 6:04 PM, Eric Lu <eirc.lew at gmail.com> wrote: > > Hi, Ben > > gcc version is: 4.7.0 > > clang ve...
2020 Nov 18
0
wasteful cmake defaults
...some measurements. The machine under test is an otherwise > unloaded Ryzen 2 server with 6 cores / 12 threads and fast NVME SSDs > running Debian sid with gcc-10.2 as the host toolchain. > > $ cmake ../llvm -DCMAKE_BUILD_TYPE=Debug -GNinja \ > -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON > ... > $ time ninja llc > ... > [1199/1199] Linking CXX executable bin/llc > ninja llc 6858.95s user 218.53s system 1095% cpu 10:45.78 total > > and then: > > $ git apply <<'EOF' > diff --git a/llvm/CMakeLists.txt b/llvm/...
2020 Nov 17
0
wasteful cmake defaults
...some measurements. The machine under test is an otherwise > unloaded Ryzen 2 server with 6 cores / 12 threads and fast NVME SSDs > running Debian sid with gcc-10.2 as the host toolchain. > > $ cmake ../llvm -DCMAKE_BUILD_TYPE=Debug -GNinja \ > -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON > ... > $ time ninja llc > ... > [1199/1199] Linking CXX executable bin/llc > ninja llc 6858.95s user 218.53s system 1095% cpu 10:45.78 total > > and then: > > $ git apply <<'EOF' > diff --git a/llvm/CMakeLists.txt b/llvm/...
2020 Nov 18
0
wasteful cmake defaults
...he machine under test is an otherwise >> unloaded Ryzen 2 server with 6 cores / 12 threads and fast NVME SSDs >> running Debian sid with gcc-10.2 as the host toolchain. >> >> $ cmake ../llvm -DCMAKE_BUILD_TYPE=Debug -GNinja \ >> -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON >> ... >> $ time ninja llc >> ... >> [1199/1199] Linking CXX executable bin/llc >> ninja llc 6858.95s user 218.53s system 1095% cpu 10:45.78 total >> >> and then: >> >> $ git apply <<'EOF' >>...
2019 Apr 16
2
Opt plugin linkage
...int when linking or loading a plugin linked against some libs. How do I find out which llvm libs I can't link with a dynamically loaded plugin? How can I use the EngineBuilder in my plugin with proper symbol resolution? For reproductivity: cmake -G "Sublime Text 2 - Ninja" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DLLVM_EXPORT_SYMBOLS_FOR_PLUGINS=ON -DLLVM_BUILD_TESTS=ON -DLLVM_BUILD_EXAMPLES=ON -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_TOOL_CLANG_BUILD=ON -DLLVM_TOOL_CLANG_TOOLS_EXTRA=ON -DLLVM_OPTIMIZED_TABLEGEN=ON -DCLANG_BUILD_EXAMPLES=ON -DCLANG_PLUGIN_SUPPORT=ON Hope som...
2019 Jul 24
2
How to contribute on LLVM project as beginner
On Wed, 24 Jul 2019 at 10:52, Oliver Stannard via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Your script looks OK, though you won't want to use the -opt-bisect-limit= > option until you've found a case where code-generation changes. Instead, > that's a tool which you could use to narrow down the pass inside LLVM which > is causing the change. > > The
2013 Jun 29
0
[LLVMdev] does clang and llvm take more time to compile c code
On Sat, Jun 29, 2013 at 8:41 AM, Eric Lu <eirc.lew at gmail.com> wrote: > The options is > cmake -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_INSTALL_PREFIX=~software/llvmsvn > -DCMAKE_EXPORT_COMPILE_COMMANDS=ON /home/xxx/lsoftware/llvm-3.2-svn > > That would do it; Debug builds are roughly 2x slower than Release builds. -Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130629/4fd46ee9/attachment.html&g...
2016 Jan 22
2
Clang 3.8 fails with asan enabled
...m-project/cfe/tags/RELEASE_380/rc1/ clang cd clang/tools svn co http://llvm.org/svn/llvm-project/clang-tools-extra/tags/RELEASE_380/rc1/ extra cd ../../../projects svn co http://llvm.org/svn/llvm-project/compiler-rt/tags/RELEASE_380/rc1/ compiler-rt cd ../.. mkdir build bin cd build cmake -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../bin -DLLVM_TARGETS_TO_BUILD=X86 ../llvm/ -DLLVM_ENABLE_ASSERTIONS=ON ninja ninja install mkdir buildrt binrt cd buildrt # Build clang with sanitizer with clang we just built: cmake -G Ninja -DCMAKE_CXX_COMPILER=../bin/bin/clang++ -DCMAKE_C_...
2020 Nov 17
2
wasteful cmake defaults
On Tue Nov 17, 2020 at 6:37 PM GMT, Min-Yih Hsu wrote: > Just trying to understand: Are you suggesting a way to have a “-O0” > build without all the debug information? > Exactly.
2020 Nov 18
1
wasteful cmake defaults
...ems, but I'd expect CI maintainers to know they can > set CMAKE_CXX_FLAGS_RELEASE. Does -O0 even build faster than -O1? On my configuration, yes: -O1 is slower than -O0 $ cmake ../llvm -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE=-O1 -GNinja -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ... $ time ninja llc [1199/1199] Linking CXX executable bin/llc ninja llc 6210.72s user 149.40s system 1145% cpu 9:15.22 total It was 8:41.99 total for the -O0 build > > Michael All the Best Luke -- Codeplay Software Ltd. Company registered in England and Wale...
2019 Apr 18
3
Opt plugin linkage
...at any point when linking or loading a plugin linked against some libs. How do I find out which llvm libs I can't link with a dynamically loaded plugin? How can I use the EngineBuilder in my plugin with proper symbol resolution? For reproductivity: cmake -G "Sublime Text 2 - Ninja" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DLLVM_EXPORT_SYMBOLS_FOR_PLUGINS=ON -DLLVM_BUILD_TESTS=ON -DLLVM_BUILD_EXAMPLES=ON -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_TOOL_CLANG_BUILD=ON -DLLVM_TOOL_CLANG_TOOLS_EXTRA=ON -DLLVM_OPTIMIZED_TABLEGEN=ON -DCLANG_BUILD_EXAMPLES=ON -DCLANG_PLUGIN_SUPPORT=ON Hope someon...