Displaying 20 results from an estimated 439 matches for "dcmake_build_type".
2018 Sep 19
4
CMake build of LLVM/clang with -DCMAKE_BUILD_TYPE=Release does not create release versions?
...uration target".
thanks for the link, is that a bug in the CMake configuration (or better
not getting any warning) or is there just documentation missing?
so i can use --config Debug or --config Release and get the correct
results - i hope that works the build takes hours
strange is that -DCMAKE_BUILD_TYPE=Debug results in a different
build-directory size compared to -DCMAKE_BUILD_TYPE=Release - so its not
fully ignored?
Am 19.09.2018 um 10:30 schrieb Boldizsar.Palotas at esa.int:
> If I understand correctly, you need to set Release mode within the VS IDE
> because with that generator the CM...
2018 Sep 19
2
CMake build of LLVM/clang with -DCMAKE_BUILD_TYPE=Release does not create release versions?
...ucture
test
llvm <-- 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...
2018 Sep 19
2
CMake build of LLVM/clang with -DCMAKE_BUILD_TYPE=Release does not create release versions?
...g in the CMake configuration (or better
> > not getting any warning) or is there just documentation missing?
> >
> > so i can use --config Debug or --config Release and get the correct
> > results - i hope that works the build takes hours
> >
> > strange is that -DCMAKE_BUILD_TYPE=Debug results in a different
> > build-directory size compared to -DCMAKE_BUILD_TYPE=Release - so its not
> > fully ignored?
> >
> > Am 19.09.2018 um 10:30 schrieb Boldizsar.Palotas at esa.int:
> > > If I understand correctly, you need to set Release mode within the...
2013 Aug 08
2
[LLVMdev] lld build
...lld/llvm on Fedora 17 but fail to build it on iMac. The commands I use as follows. Anyone can help me? Or is there the lld mail list I can post the question?
Linux/Fedora can be built by the following command
cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_FLAGS=-std=c++11 -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" ../src/
make
iMac cannot be built by the following command (fail on Xcode compile)
cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_FLAGS=-std=c++0x -DCMAKE_BUILD_TYPE=Debug -G "Xcode" ../src/
Jonathan
-------------- next part...
2018 Sep 20
6
CMake build of LLVM/clang with -DCMAKE_BUILD_TYPE=Release does not create release versions?
...> > not getting any warning) or is there just documentation missing?
>>> >
>>> > so i can use --config Debug or --config Release and get the correct
>>> > results - i hope that works the build takes hours
>>> >
>>> > strange is that -DCMAKE_BUILD_TYPE=Debug results in a different
>>> > build-directory size compared to -DCMAKE_BUILD_TYPE=Release - so its not
>>> > fully ignored?
>>> >
>>> > Am 19.09.2018 um 10:30 schrieb Boldizsar.Palotas at esa.int:
>>> > > If I understand correctly,...
2019 Mar 25
3
Trying to create a pure LLVM toolchain on musl based distribution
...of space and memory trying to
build all using LLVM_ENABLE_PROJECTS. Also, I don't want to create a
all-in-one package. Then, once I'm able to build program with clang,
I'll rebuild all using clang instead of gcc.
# LLVM
I've built LLVM using the following configuration:
-DCMAKE_BUILD_TYPE=Release
-DBUILD_SHARED_LIBS=On
-DCMAKE_INSTALL_PREFIX=/usr
-DLLVM_HOST_TRIPLE=x86_64-linux-musl
-DLLVM_ENABLE_RTTI=On
# compiler-rt
I've needed to disable xray/sanitizers otherwise it didn't build on musl.
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/u...
2018 Feb 15
1
llvm-6.0.0rc2: fatal error: clang/Basic/Version.h: No such file or directory
...via
system package managers is independently, each project finding its
dependencies with the standard prefix path.
When I compile from source it's always like this:
$ cd llvm-6.0.0rc2.src/
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/local
-DCMAKE_PREFIX_PATH=$HOME/local -DCMAKE_BUILD_TYPE=Release
$ make install
$ cd cfe-6.0.0rc2.src/
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/local
-DCMAKE_PREFIX_PATH=$HOME/local -DCMAKE_BUILD_TYPE=Release
$ make install
$ cd lld-6.0.0rc2.src/
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/local
-DCMAKE_PREF...
2017 Aug 05
3
Cross compiling C++ program
...to be clear what "I did" means:
- llvm sources from trunk and projects/tools repos checkout under llvm
- clang-6.0 compiles "Hello World"
- make check-all fails (not sure I'm not causing it)
- make install creates everything under PREFIX
# cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_INSTALL_PREFIX=/tmp/x86-sysroot ../../source/llvm
# make -j4
# make install
It was fun learning how to manualy compile compiler for the first time. Now how to cross compile for bare? Given that I have musl-1.1.16 directory and that I'm preseeding sys...
2014 Jan 21
2
[LLVMdev] C++0x Bug in CMake?
...Golin <renato.golin at linaro.org>wrote:
>
>> Chandler,
>>
>> I may be doing this wrong, but I'm getting a weird error in building LLVM
>> with Clang via CMake.
>>
>> On x86_64:
>> $ CC=clang CXX=clang++ cmake -G Ninja ../../src/llvm
>> -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_TESTS=True
>> -DLLVM_ENABLE_ASSERTIONS=True
>>
>> On ARM:
>> $ CC=clang CXX=clang++ cmake -G Ninja ../src/ -DCMAKE_BUILD_TYPE=Release
>> -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_C_FLAGS=-mcpu=cortex-a15
>> -DCMAKE_CXX_FLAGS=-mcpu=cortex-a15...
2013 Aug 08
0
[LLVMdev] lld build
...ora 17 but fail to build it on iMac. The commands I use as follows. Anyone can help me? Or is there the lld mail list I can post the question?
>
> Linux/Fedora can be built by the following command
> cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_FLAGS=-std=c++11 -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" ../src/
> make
>
> iMac cannot be built by the following command (fail on Xcode compile)
> cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_FLAGS=-std=c++0x -DCMAKE_BUILD_TYPE=Debug -G "Xcode" ../src/
>
> Jonat...
2017 Aug 08
2
Safety of changing values of variables by editing CMakeCache.txt Vs supplying them through the command line
Hello,
I'm working on a project involving LLVM and keep shifting between the Debug
and Release build by assigning different values to CMAKE_BUILD_TYPE in
<llvm_build>/CMakeCache.txt and then building it.
I wanted to know if this was a safe alternative to re-configuring the build
after removing <llvm_build>/CMakeFiles/ and <llvm_build>/CMakeCache.txt.
Thanks,
Sanjay
2019 Apr 13
2
Failed to replace stdlibc++ with libc++, linker phase error
On 04/12/2019 06:31 PM, Tom Stellard via llvm-dev wrote:
> On 04/12/2019 04:28 PM, AiChi via llvm-dev wrote:
>> Hi,
>>
>> I'm currently working on one of my team's project to build LLVM full clang toolchain (Clang, libcxx, libcxxabi) on a CentOS machine.
>>
>> Previously we compiled our codebase with llvm-toolset-7/clang++, which by default takes stdlibc++
2014 Jan 21
4
[LLVMdev] C++0x Bug in CMake?
Chandler,
I may be doing this wrong, but I'm getting a weird error in building LLVM
with Clang via CMake.
On x86_64:
$ CC=clang CXX=clang++ cmake -G Ninja ../../src/llvm
-DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_TESTS=True
-DLLVM_ENABLE_ASSERTIONS=True
On ARM:
$ CC=clang CXX=clang++ cmake -G Ninja ../src/ -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=../install -DCMAKE_C_FLAGS=-mcpu=cortex-a15
-DCMAKE_CXX_FLAGS=-mcpu=cortex-a15 -DLLVM_TARGETS_TO_BUILD=ARM
-DLLVM_BUILD_TESTS=True -...
2019 Sep 03
2
Struggling with a PGO build of clang -- llvm-profdata was built without zlib support?
...MMANDS=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 \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_LTO=Thin \
-DCMAKE_RANLIB=/path/to/release_build/bin/llvm-ranlib \
-DCMAKE_AR=/path/to/release_build/bin/llvm-ar
I tried this without specifying zlib being enabled, without thinlto,
everything I could come up with really.
* Built a debug Clang with the following conf...
2019 Aug 07
2
Compiling compiler-rt for baremetal CortexM on Ubuntu Linux
...nly build "libclang_rt.builtins-x86_64.a" in lib/linux, but what I
want to build is "libclang_rt.builtins.arm.a".
My CMake options are:
cmake -G Ninja DBAREMETAL_ARMV6M_SYSROOT=${ARMEABI5GCC}
-DBAREMETAL_ARMV7M_SYSROOT=${ARMEABI5GCC}
-DBAREMETAL_ARMV7EM_SYSROOT=${ARMEABI5GCC} -DCMAKE_BUILD_TYPE=Release
-C/home/llvm-project/clang/cmake/caches/BaremetalARM.cmake
/home/llvm-project/llvm/runtimes/compiler-rt
with
echo $ARMEABI5GCC
/home/gcc-arm-none-eabi-5_4-2016q3/arm-none-eabi
Does anyone know how to fix this problem?
Thanks in advance!
Xia Zhou
-------------- next part --------------
An...
2016 Jan 31
2
Shipping development files for mingw32
Hi,
Is is possible to ship development files for MinGW32
like static libs and headers? I am particularly interested
in libvorbisfile required to build Wesnoth on Windows.
SDL2 provides a convenient distribution that I unpack
and it works:
https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.0.1-mingw.tar.gz
https://www.libsdl.org/projects/SDL_mixer/
But I can't find where I
2019 Jun 28
2
Conflicts with custom passes
...N4llvm10ModulePassE’
Originally I used a builtin Clang in the system and it does not produce this issue.
When I search for this issue on Google, it seems to be relevant to “RTTI”. But as I know LLVM is built by default -fno-rtti. I also explicitly turned off it. Here is my cmake command:
$ cmake -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_RTTI=OFF -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm
Any thought?
Best,
- Kihong
> On Jun 28, 2019, at 5:39 AM, Tim Northover <t.p.northover at gmail.com> wrote:
>
> Hi Kihong,
>
> On Fri, 28 Jun 2019 at 05:58, Kihong Heo via llv...
2019 Sep 03
2
Struggling with a PGO build of clang -- llvm-profdata was built without zlib support?
...lang++ \
>> -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 \
>> -DCMAKE_BUILD_TYPE=Release \
>> -DLLVM_ENABLE_LTO=Thin \
>> -DCMAKE_RANLIB=/path/to/release_build/bin/llvm-ranlib \
>> -DCMAKE_AR=/path/to/release_build/bin/llvm-ar
>>
>> I tried this without specifying zlib being enabled, without thinlto,
>> everything I could come up with r...
2019 Jan 01
3
llvm-config deprecation
My build process:
$ cd llvm/
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/local
-DCMAKE_PREFIX_PATH=$HOME/local -DCMAKE_BUILD_TYPE=Release
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="WebAssembly;AVR;RISCV"
-DLLVM_ENABLE_LIBXML2=OFF
$ make install
$ cd clang/
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/local
-DCMAKE_PREFIX_PATH=$HOME/local -DCMAKE_BUILD_TYPE=Release
$ make install
This is trunk. When...
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...