Displaying 20 results from an estimated 4000 matches similar to: "wasteful cmake defaults"
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.
>
2020 Nov 17
0
wasteful cmake defaults
Just trying to understand: Are you suggesting a way to have a “-O0” build without all the debug information?
-Min
> On Nov 17, 2020, at 10:25 AM, Luke Drummond via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> 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
2020 Nov 18
0
wasteful cmake defaults
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.
-- Sean Silva
On Tue, Nov 17, 2020 at 10:25 AM Luke Drummond via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hi all
>
> I wanted to do a quick build of a clean branch
2020 Nov 17
0
wasteful cmake defaults
On Tue, Nov 17, 2020 at 10:25 AM Luke Drummond via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>
> 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
2020 Nov 18
0
wasteful cmake defaults
I have no strong opinion on this topic personally (I always set the build type to something if I’m not generating a Visual Studio project), but this “non-optimized, non-asserting, non-debug-info-containing” build that you get when not specifying the build type to CMake is a quirk that I feel most CMake users expect at this point. I don’t think there’s any real value in providing a useful default
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.
2016 Oct 10
2
Embedding llvm as a git submodule in Project
Hi Timo:
You need to find LLVMConfig.cmake in the binary or install directory tree,
not the source tree.
Although I don't embed clang/llvm, my config might help you figure it --
clang/llvm installed under (could have used build directory) ~/usr :
$ cd /Users/dhinton/projects/cover/build/ && rm -rf * && CC=~/usr/bin/clang
CXX=~/usr/bin/clang++ LLVM_DIR=~/usr/lib/cmake/llvm
2020 Nov 18
1
wasteful cmake defaults
On Tue Nov 17, 2020 at 10:35 PM GMT, Michael Kruse wrote:
> Am Di., 17. Nov. 2020 um 12:46 Uhr schrieb Luke Drummond via llvm-dev
> <llvm-dev at lists.llvm.org>:
> >
> > 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?
2020 Nov 18
0
wasteful cmake defaults
On 17/11/2020 18:25, Luke Drummond via llvm-dev wrote:
>> -- 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
>
> I've just done a build of llvm and
2016 Oct 10
2
Embedding llvm as a git submodule in Project
Sorry my example wasn't helpful.
I did take a quick look at rust -- though I didn't download or try to build
it -- and they seem to allow you to use an installed or prebuilt version in
addition to building it in-tree. However, even when they build it in-tree,
they build the whole thing -- see mk/llvm.mk.
Good luck...
On Mon, Oct 10, 2016 at 1:33 AM, Timo Janssen via llvm-dev <
2016 Oct 09
3
Embedding llvm as a git submodule in Project
Hi all.
I want to use llvm in my project and I want to make llvm a git submodule
in my project.
http://llvm.org/docs/CMake.html#embedding-llvm-in-your-project
At this in the documentation it claims to describe how to embed llvm
into a project. I tried it that way but it doesn't work, because there
isn't any findLLVM.cmake in the llvm/cmake/modules directory anymore (i
don't
2019 Apr 16
3
Opt plugin linkage
Hi,
I have a dynamically loaded llvm pass built in-tree with ninja (generated with cmake, basically a copy of the hallo pass plugin, linux, llvm/clang version 6.0.1).
It uses the ExecutionEngine.
Building it without linking against LLVMExecutionEngine library results in an undefined symbol to the vtable of the EngineBuilder when loaded to opt. Linking the plugin with LLVMExecutionEngine results in
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
2019 Apr 11
2
Opus cmake build
On Wed, Apr 10, 2019 at 5:30 PM Marcus Asteborg <xnorpx at outlook.com> wrote:
> Hi Mark,
>
> Thanks for the feedback.
>
> By default CMake is building the static library in debug, to get other
> things one has to explicit turn it on.
>
>
Hi,
By default CMake uses the "empty" build, which is used in combination with
the environment variables CFLAGS and
2019 Apr 16
2
Opt plugin linkage
Hey:
I spent sometime debugging this, it seems like editing ``llvm/tools/opt.cpp`` and move ``cl::ParseCommandLineOptions(argc, argv,
"llvm .bc -> .bc modular optimizer and analysis printer\n");`` to the beginning of main() solved it for me. I'm not sure if this is a bug on LLVM side
Zhang
------------------ Original ------------------
From: "Viktor Was BSc via
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
2019 Apr 18
3
Opt plugin linkage
The fundamental problem here is that opt doesn’t use ExecutionEngine (because it has no need to), so trying
to use ExecutionEngine (or any other bit of llvm that opt doesn’t use for that matter) in an opt plugin isn’t
going to work.
The solution I’d go with would be to build llvm with shared libraries (use –DBUILD_SHARED_LIBS=ON on the
cmake command) then link the plugin against ExecutionEngine.
[RFC] LLVM Directory Structure Changes (was Re: [PATCH] D20992: [CMake] Add LLVM runtimes directory)
2016 Jun 09
9
[RFC] LLVM Directory Structure Changes (was Re: [PATCH] D20992: [CMake] Add LLVM runtimes directory)
Moving to llvm-dev (I think this has gone a bit further than a patch review discussion)
In hindsight I probably should have explained more of my thinking on this with the patch, or done an RFC on llvm-dev to start with. I’l do that now, and answer the questions along the way. I sent a separate email discussing Justin’s patch review feedback.
In the build system today there is no strong
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
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