Displaying 20 results from an estimated 20000 matches similar to: "[CMake] Re-configuring Debug and Release builds"
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
2016 Feb 19
3
undefined reference to typeinfo for CmpInst
Hi all,
I am having some some trouble with LLVM 3.8... I built it with GCC 4.8.2
with cmake and no special CXX/C flags. That means in case of GCC that
RTTI is switched on, I believe.
However, building my MCJIT application against the just built LLVM and
linking results in:
libqdp.a(qdp_llvm.o):(.rodata._ZTIN4llvm8FCmpInstE[_ZTIN4llvm8FCmpInstE]+0x10):
undefined reference to `typeinfo for
2016 Feb 03
3
opt with Polly doesn't find the passes
I just checkout release_38 branches of llvm, clang and polly and built
it on and x86 Ubuntu with cmake:
CMAKE_BUILD_TYPE="Debug"
CMAKE_INSTALL_PREFIX="$HOME/toolchain/install/llvm-3.8"
LLVM_TARGETS_TO_BUILD="X86"
cmake -G "Unix Makefiles" \
-DBUILD_SHARED_LIBS="ON" \
-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \
2016 Feb 03
2
opt with Polly doesn't find the passes
On 02/03/2016 11:06 AM, Tobias Grosser wrote:
> On 02/03/2016 04:46 PM, Frank Winter via llvm-dev wrote:
>>
>>
>> On 02/03/2016 10:41 AM, Tobias Grosser wrote:
>>> On 02/03/2016 04:37 PM, Frank Winter wrote:
>>>> Hi Tobias,
>>>>
>>>> I tried to invoke other passes and none of them are available, e.g.:
>>>>
2018 Sep 19
4
CMake build of LLVM/clang with -DCMAKE_BUILD_TYPE=Release does not create release versions?
>because with that generator the CMAKE_BUILD_TYPE variable is ignored
>because it is a "multi-configuration 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
2014 Apr 10
2
[LLVMdev] CMake configuration: Detecting zlib.h header in windows.
Hi,
I have having hard time to let cmake configuration detect the zlib
header in windows with "Visual Studio 12" generator. My cmake
configuration goes like
>> Set path, include and lib environment variables to point to zlib
headers and libraries. Cmake version is 2.8.12.2
cmake -G "Visual Studio 12" -D LLVM_TARGETS_TO_BUILD:STRING=%TARG% -D
2018 Sep 19
2
CMake build of LLVM/clang with -DCMAKE_BUILD_TYPE=Release does not create release versions?
my build environment:
Win7 x64
VStudio 2017 Community Edition 15.8.4 (latest)
CMake 3.12.1 (x86)
git 2.19.0 (latest, x64)
Python 2.7.2 (x86)
directory structure
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
2018 Sep 19
2
CMake build of LLVM/clang with -DCMAKE_BUILD_TYPE=Release does not create release versions?
>are you setting the optimized tablegen option?
LLVM_OPTIMIZED_TABLEGEN is not active - i will try that
>In addition, make sure you have plenty of memory
i've got only Intel Core 2 Quad CPU Q8300/2.50Ghz and 8GB RAM for testing
not much cpu power AND memory
Am 19.09.2018 um 11:31 schrieb James Henderson:
> Regarding the Debug build taking hours, are you setting the optimized
2017 Aug 02
2
ubsan no longer compiles when libc++ is the default
Hi,
I see the following variables in the CMakeCache.txt:
SANITIZER_CXX_ABI:STRING=default
//STRINGS property for variable: SANITIZER_CXX_ABI
SANITIZER_CXX_ABI-STRINGS:INTERNAL=none;default;libcxxabi;libstdc++
Regards,
ismail
On Tue, Aug 1, 2017 at 7:32 PM, Vedant Kumar <vsk at apple.com> wrote:
>
>> On Aug 1, 2017, at 7:07 AM, İsmail Dönmez via llvm-dev <llvm-dev at
2020 Nov 17
10
wasteful cmake defaults
Hi all
I wanted to do a quick build of a clean branch yesterday and noticed
something surprising in the configure log:
> -- No build type selected, default to Debug
It appears that llvm's configuration forces Debug builds if the user
does not specify the build type.
https://github.com/llvm/llvm-project/blob/9218ff50f93085d0a16a974db28ca8f14bc66f64/llvm/CMakeLists.txt#L57-L60
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 Jan 14
2
[LLVMdev] Circular Deps from CMake build using makefile
----- Original Message ----
> From: Óscar Fuentes <ofv at wanadoo.es>
> To: Samuel Crow <samuraileumas at yahoo.com>
> Cc: Óscar Fuentes <ofv at wanadoo.es>; LLVM Developers Mailing List
><llvmdev at cs.uiuc.edu>
> Sent: Fri, January 14, 2011 4:39:57 PM
> Subject: Re: Circular Deps from CMake build using makefile
>
> Samuel Crow <samuraileumas
2014 Aug 27
2
[LLVMdev] migrating from autoconf to cmake+ninja
I want to start using cmake+ninja instead of autoconf for configuring
and building llvm from svn, but I have no idea how to map my existing
list of autoconf flags to cmake.
Here's how I run ./configure right now in the top directory:
PREFIX=_some_prefix_dir_ \
../llvm/configure \
--prefix=$PREFIX \
--libdir=$PREFIX/lib/llvm \
--sysconfdir=$PREFIX/etc \
--enable-shared \
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:
>>
>> (kcc, george:
2017 Oct 14
2
darwin bootstrap failure
On Sat, Oct 14, 2017 at 4:22 PM, Don Hinton <hintonda at gmail.com> wrote:
> Hi Jack:
>
> The only way I could reproduce the problem you are seeing was to rerun
> cmake with -DCMAKE_BUILD_TYPE=Debug in a build directory previously
> configured with -DCMAKE_BUILD_TYPE=Release. I can fix that, but not sure
> if it's what you are seeing.
>
> If this isn't your
2020 Nov 18
1
wasteful cmake defaults
Yeah, that's one I'd be in favor of fixing, if it's still the case.
On Tue, Nov 17, 2020 at 5:38 PM Sean Silva via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>
> I'm curious how much of this is due to not using LLD? Last I checked, using ld.bfd instead of LLD (or gold) was one of my major build time issues, and somehow our default configuration would use ld.bfd.
>
2019 May 24
2
Prevent ninja from rerunning cmake in a new build directory
Just posted this fix on ninja's github page, but figured I'd share it with
a larger audience.
Every time I run cmake && ninja in a new build directory, ninja will rerun
cmake because the entry for build.ninja in .ninja_log is older than the
timestamp on CMakeCache.txt, even if the timestamps on the actual file
isn't older.
The following patch fixes the problem, i.e.,
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
2014 Sep 02
2
[LLVMdev] migrating from autoconf to cmake+ninja
On Wed, Aug 27, 2014 at 4:29 PM, Mueller-Roemer, Johannes Sebastian
<Johannes.Sebastian.Mueller-Roemer at igd.fraunhofer.de> wrote:
> prefix = CMAKE_INSTALL_PREFIX
> enabled-shared = BUILD_SHARED_LIBS
> targets = LLVM_TARGETS_TO_BUILD (defaults to all, or use a semicolon separated list)
> disable-assertions = LLVM_ENABLE_ASSERTIONS (obviously inverted ;)
>
> I don't
2017 Oct 14
2
darwin bootstrap failure
On Sat, Oct 14, 2017 at 11:38 AM, Don Hinton <hintonda at gmail.com> wrote:
> Sorry, LLVM_FORCE_ENABLE_DUMP is the variable, which is used along with
> LLVM_ENABLE_ASSERTIONS to set LLVM_ENABLE_DUMP.
>
> Again, I'm working on a fix, but could you also provide your cmake
> command? Looks like we aren't handling your use case correctly.
>
> thanks..
> don
>