search for: dllvm_targets_to_build

Displaying 20 results from an estimated 277 matches for "dllvm_targets_to_build".

2018 Jul 23
2
Requesting for help.
...CMAKE_CXX_COMPILER=../build_directory_llvm/bin/clang++ -DLLVM_TABLEGEN=../build_llvm_directory/bin/llvm-tblgen -DCLANG_TABLEGEN=../build_llvm_directory/bin/clang-tblgen -DCROSSCOMPILING=True -DCMAKE_INSTALL_PREFIX=../tmp_two -DLLVM_DEFAULT_TARGET_TRIPLE=aarch64-linux-gnu -DLLVM_TARGET_ARCH=AARCH64 -DLLVM_TARGETS_TO_BUILD=ARM -DCMAKE_CXX_FLAGS='-target aarch64-linux-gnu --sysroot=../myOwnToolChainTwo/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc --gcc-toolchain=../myOwnToolChainTwo/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/ -mcpu=cortex-a72' -DLLVM_ENABLE_LIBCXX=ON -DLLVM_E...
2017 Feb 28
3
LLVM_TARGETS_TO_BUILD
...etely separate compilers to produce x64 and x32 > libraries/binaries. A bit of grubbing around the internet suggests > CMake exposes this with the CMAKE_GENERATOR_PLATFORM variable, and -A > on the command line. So I'd suggest: > > c:\cmake-3.8.0-rc1-win64-x64\bin\cmake.exe > -DLLVM_TARGETS_TO_BUILD=x86_64 -G "Visual Studio 14" -A Win64 > > (plus a path to the source). That last argument is a bit of a guess, > but fits in with documentation at > https://cmake.org/cmake/help/v3.8/generator/Visual% > 20Studio%2014%202015.html > (for example). > > Hope this works...
2015 Mar 29
2
[LLVMdev] How to Cross Compile libcompiler_rt Static Library?
...ler-rt > > -DCMAKE_CROSSCOMPILING=True > > As you can see, I'm using CMake. Works pretty well so far. Hopefully > something like this will work for you as well? > I tried "cmake ../compiler-rt -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_NATIVE_ARCH=ARM -DLLVM_TARGETS_TO_BUILD=ARM -DTARGET_TRIPLE=armv-none-linux-gnueabi -DCMAKE_CROSSCOMPILING=True". It will still build X86_64 version. I also tried "cmake ../compiler-rt -DCMAKE_C_COMPILER=/usr/local/arm-2009q3/bin/arm-none-linux-gnueabi-gcc -DCMAKE_CXX_COMPILER=/usr/local/arm-2009q3/bin/arm-none-linux-gnueabi-...
2011 Mar 15
2
[LLVMdev] How to choose targets to build in CMake?
Hi all, I understand from the document that I should be able to configure llvm with only specific targets by passing -DLLVM_TARGETS_TO_BUILD=some-backend to cmake. However, I get the following errors whenever I don't include X86 in the target list: CMake Error at cmake/modules/LLVMConfig.cmake:127 (message): Library `X86' not found in list of llvm libraries. Call Stack (most recent call first): cmake/modules/LLVMConfig.cma...
2013 Oct 29
2
[LLVMdev] [compiler-rt] lit tests without x86
> What is the exact line you use to configure build tree, and the output you see? cmake ../.. \ -G Ninja \ -DCMAKE_INSTALL_PREFIX=ship \ -DCMAKE_BUILD_TYPE=Release \ -DLLVM_ENABLE_ASSERTIONS=ON \ -DLLVM_TARGETS_TO_BUILD=ARM \ -DLLVM_DEFAULT_TARGET_TRIPLE=arm-none-linux-gnueabi \ -DLLVM_TARGET_ARCH=arm-none-linux-gnueabi \ -DLLVM_LIT_ARGS=-v ninja check-all Lot's of different errors, but this one stands out (from 'check-tsan'): cannot find "bin/../lib/clang/3.4/lib/linux/libclang...
2018 Sep 19
2
CMake build of LLVM/clang with -DCMAKE_BUILD_TYPE=Release does not create release versions?
...-- git clone https://github.com/llvm-mirror/llvm     tools       clang <-- git clone https://github.com/llvm-mirror/clang   llvm_build Debug build: clean build, llvm_build is deleted before llvm_build> cmake -Thost=x64 -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD=host -DLLVM_BUILD_EXAMPLES=1 -DCLANG_BUILD_EXAMPLES=1 -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_DOCS=OFF ..\llvm builds for hours, a few warning, no errors -> llvm_build is ~44GB i can find many working libs/exes(also examples) in llvm_build\Debug\(lib|bin) then i tried to build release vers...
2013 Oct 25
2
[LLVMdev] [compiler-rt] lit tests without x86
Are there any sanitizer lit tests in non-X86 configurations? For example: $ cmake -DLLVM_TARGETS_TO_BUILD=ARM \ -DLLVM_DEFAULT_TARGET_TRIPLE=arm-none-linux-gnueabi \ -DLLVM_TARGET_ARCH=arm-none-linux-gnueabi All ASan tests were removed from the build and all the other sanitizers have tests but they all fail. Should they all be disabled too? Or can we add a REQUIRES tag to get lit to mark the...
2019 Sep 03
2
Struggling with a PGO build of clang -- llvm-profdata was built without zlib support?
...ibe how to do the entire process 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...
2018 Sep 19
4
CMake build of LLVM/clang with -DCMAKE_BUILD_TYPE=Release does not create release versions?
...ror/llvm > tools > clang <-- git clone https://github.com/llvm-mirror/clang > llvm_build > > Debug build: clean build, llvm_build is deleted before > > llvm_build> cmake -Thost=x64 -G "Visual Studio 15 2017 Win64" > -DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD=host > -DLLVM_BUILD_EXAMPLES=1 -DCLANG_BUILD_EXAMPLES=1 > -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_DOCS=OFF ..\llvm > > builds for hours, a few warning, no errors -> llvm_build is ~44GB > > i can find many working libs/exes(also examples) in > llvm_build\Debug\(lib|bin) >...
2010 Aug 02
6
[LLVMdev] CMake broken?
Hi all, CMake seems to have broken in the last few days - or is it just me? tcare:llvm-release tcare$ make -j4 -- Target triple: x86_64-apple-darwin10.5.0 -- Native target architecture is X86 -- Threads enabled. -- Building with -fPIC -- Targeting X86 CMake Error at cmake/modules/LLVMConfig.cmake:90 (message): Library LLVMARMAsmParser not found in list of llvm libraries. Call Stack (most
2019 Sep 03
2
Struggling with a PGO build of clang -- llvm-profdata was built without zlib support?
...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 \ >>...
2009 Sep 15
3
[LLVMdev] IDE on *nix
2009/9/15 Patrick Simmons <simmon12 at illinois.edu>: > cmake -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE="Debug" > -DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD="X86;PowerPC;CBackend" > /home/renato/llvm-sources Thanks Patrick, I'll give it a try. At least now I know that it can be done. My previous attempts all ended up in memory depletion during the indexing. ;) I'll check the archives... cheers, --renato Reclaim your digital ri...
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.
2011 Mar 15
0
[LLVMdev] How to choose targets to build in CMake?
On Tue, Mar 15, 2011 at 6:34 PM, Dongrui She <sarevokcc at gmail.com> wrote: > However, I get the following errors whenever I don't include X86 in the > target list: on top of trunk, it seems cmake requires at least "native" (for yours, X86) target. (I reconfirmed with -DLLVM_TARGETS_TO_BUILD=ARM on x86) For workaround, you have to include "X86" always. ...Takumi
2013 Oct 29
0
[LLVMdev] [compiler-rt] lit tests without x86
...t;garious at gmail.com> wrote: > > What is the exact line you use to configure build tree, and the output > you see? > > cmake ../.. \ > -G Ninja \ > -DCMAKE_INSTALL_PREFIX=ship \ > -DCMAKE_BUILD_TYPE=Release \ > -DLLVM_ENABLE_ASSERTIONS=ON \ > -DLLVM_TARGETS_TO_BUILD=ARM \ > -DLLVM_DEFAULT_TARGET_TRIPLE=arm-none-linux-gnueabi \ > -DLLVM_TARGET_ARCH=arm-none-linux-gnueabi \ > -DLLVM_LIT_ARGS=-v > > ninja check-all > > > Lot's of different errors, but this one stands out (from 'check-tsan'): > > cannot find...
2013 Oct 29
0
[LLVMdev] [compiler-rt] lit tests without x86
...itizer tests on these platforms. What is the exact line you use to configure build tree, and the output you see? On Fri, Oct 25, 2013 at 2:45 PM, Greg Fitzgerald <garious at gmail.com> wrote: > Are there any sanitizer lit tests in non-X86 configurations? For example: > > $ cmake -DLLVM_TARGETS_TO_BUILD=ARM \ > -DLLVM_DEFAULT_TARGET_TRIPLE=arm-none-linux-gnueabi \ > -DLLVM_TARGET_ARCH=arm-none-linux-gnueabi > > All ASan tests were removed from the build and all the other > sanitizers have tests but they all fail. Should they all be disabled > too? Or can we add a REQUIR...
2016 May 06
3
build issue in llvm-clang cross tool chain for arm target
...vm -DLLVM_ENABLE_LIBCXX=ON -DCMAKE_CROSSCOMPILING=True -DCMAKE_INSTALL_PREFIX=/home/iiita/crossbuild/build -DLLVM_TABLEGEN=/home/iiita/llvm-3.8/build/bin/llvm-tblgen -DCLANG_TABLEGEN=/home/iiita/llvm-3.8/build/bin/clang-tblgen -DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf -DLLVM_TARGET_ARCH=ARM -DLLVM_TARGETS_TO_BUILD=ARM -DCMAKE_CXX_FLAGS='-target armv7a-linux-gnueabihf -mcpu=cortex-a9 -I/usr/arm-linux-gnueabihf/include/c++/4.7.3/arm-linux-gnueabihf/ -I/usr/arm-linux-gnueabihf/include/ -mfloat-abi=hard -ccc-gcc-name arm-linux-gnueabihf-gcc' *Error message:* CMake Error at cmake/modules/CheckAtomic.cmak...
2009 Aug 09
2
[LLVMdev] modify cmakefiles to set the default triple of msvc and mingw to i686-pc-mingw
...ALL_TARGETS} >> It's can working, why not set it to:. > > I think most LLVM users on Windows are interested on X86 only. This > saves a lot of time on the build process and creates smaller > executables. Anyways, it they want all targets, it is simply a matter of > passing -DLLVM_TARGETS_TO_BUILD=all on the cmake command line. I don't see any reason why that argument applies to people building with MSVC, but not people on other platforms. -Eli
2019 Oct 20
3
How to configure cmake to not rebuild .inc (tablegen) files?
...of the tablegen files. The building is unnecessary and slow, especially when it builds the X86GenSubtargetInfo.inc. Is there a way to prevent cmake generating Makefiles that rebuilds all the tablegen files? Here is my command line to run cmake for generating Makefiles: cmake -G “Unix Makefiles” -DLLVM_TARGETS_TO_BUILD=“X86" -DCMAKE_BUILD_TYPE=Debug $(LLVM_SRC) The cmake version is 3.13.4. And I did not experience the same behavior on a Linux. Thanks, - Jie -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191020/87046...
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 tha...