Displaying 20 results from an estimated 100 matches similar to: "[LLVMdev] CMake configuration: Detecting zlib.h header in windows."
2015 May 22
2
[LLVMdev] How to determine the architecture that clang/llvm will compile in CMake.
I've been working on getting the LLVM OpenMP library to build smoothly alongside llvm/clang using CMake, but one problem I'm having is determining exactly which CMake option designates the architecture the compiler will compile. I see LLVM_TARGET_ARCH, LLVM_TARGETS_TO_BUILD, LLVM_DEFAULT_TARGET_TRIPLE, etc.
I thought I should just ask which one designates the architecture the compiler
2017 Jun 06
3
libc++ failed to link against musl
On 5 Jun 2017, at 15:17, Jonathan Roelofs via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> On 6/5/17 5:17 AM, Dmitry Golovin via llvm-dev wrote:
>> I'm trying to build LLVM, Clang, LLD, compiler-rt, libc++, libc++abi and libunwind with musl-based toolchain.
>>
>> The configuration is the following:
>>
>> LIBCXX_HAS_MUSL_LIBC=ON
>>
2017 Jun 05
3
libc++ failed to link against musl
I'm trying to build LLVM, Clang, LLD, compiler-rt, libc++, libc++abi and libunwind with musl-based toolchain.
The configuration is the following:
LIBCXX_HAS_MUSL_LIBC=ON
LIBCXX_HAS_GCC_S_LIB=OFF
CLANG_DEFAULT_CXX_STDLIB=libc++
CLANG_DEFAULT_LINKER=lld
CLANG_DEFAULT_RTLIB=compiler-rt
LLVM_DEFAULT_TARGET_TRIPLE=x86_64-pc-linux-musl
LLVM_TARGET_ARCH=x86_64
2013 Jun 21
1
[LLVMdev] Patch for the fact that all llvm python scripts are python 2.x compatible.
720beaedce6f19c81156fe20168f85989a8db53d
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bb70f15..e327427 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -249,7 +249,7 @@ set(LLVM_DEFAULT_TARGET_TRIPLE
"${LLVM_HOST_TRIPLE}" CACHE STRING
set(TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}")
2015 Sep 20
3
LLVM static libs
Hi,
the first question is addressed both to llvm-dev and gentoo-dev. The
second one is Gentoo specific.
Is there any possibility to build LLVM both as static and shared libraries?
What I see currently is that our ebuild makes LLVM to build shared libs
unconditionally. Is there a possibility (if it is impossible to build
both lib types) to at least give to user control on what kind of libs he
2015 Jul 08
2
[LLVMdev] Building clang + libc++ + libc++abi
[Sorry about the crosspost. Since this is a clang build question but
the build is invoked from the top-level LLVM directory I'm not sure
where the question should go.]
I've got a clang build against libstdc++ on Linux but I would really
like one built against libc++/libc++abi. In other words I'd like to
rebuild clang/llvm with clang using libc++ and libc++abi on Linux.
I looked at
2017 Feb 03
2
Build status expectations for experimental targets
> On Feb 3, 2017, at 12:45 PM, Dylan McKay via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> The builder isn’t marked as experimental so I think the expectation is that people keep it green and contact the bot owner if they need help figuring out why their change makes it red. That said, it sounds a bit odd to have a non-experimental builder for an experimental backend.
>
2016 May 03
2
Problem on cross-compiling compiler-rt
This is currently a rough area in our build system, but there are two CMake options you probably need to set.
(1) -DLLVM_BUILD_EXTERNAL_COMPILER_RT=On —> This option causes the build to use the just-built clang when building compiler-rt
(2) -DCOMPILER_RT_DEFAULT_TARGET_ARCH=??? —> This is where you specify which architecture you want to build the compiler-rt archives and libraries for
2018 May 31
1
Hang generating sanitizer tests
Just to follow-up, I'm now encountering this as well. I'm doing this on Linux.
It seems that when linking with the most-recently built clang, the
unit tests are taking a while to complete. It's notably not using more
than 1 thread, and if using `lld` I would have expected the linker to
still be running in parallel.
I'm doing this on a debug build, so that might help narrow it
2020 Jan 13
2
Attempt to build MLIR.
These errors seem pretty pervasive for me on a clean build. It appears
that it arises because when tablegen'd headers are included in a .h file,
every place where that .h file is used needs a dependency on the
corresponding IncGen targets. This seems broken in the short term and
unmaintainable in the long term. There really needs to be a way of
automatically generating the right
2009 Sep 16
0
[LLVMdev] Suppressing cmake's LLVM_ENABLE_PIC for the Xcode generator
Hi,
If you create an Xcode project with
cmake -G Xcode ~/llvm
and do a build, you end up with 68 warnings like this:
-mdynamic-no-pic overrides -fpic or -fPIC
This can be easily avoided doing:
cmake -G Xcode -ULLVM_ENABLE_PIC ~/llvm
But I think it would be nicer if it built warning-free with the
simpler form.
What do you think?
Ray
PS: CMake generated make style builds on
2016 Oct 06
2
How is target_triple/default_triple handled in tests?
As part of trying to fix PR30610 (ThinLTO with module inline asm), I wanted
to add an assert that we have a Target and an MCAsmParser when we have
non-null module inline asm in IRObjectFile::CollectAsmUndefinedRefs.
Otherwise it silently fails to parse the module inline asm, which I
initially found when trying to add an 'opt' based test for my fix (because
'opt' wasn't
2016 Mar 17
2
Building with LLVM_PARALLEL_XXX_JOBS
On Mon, Mar 14, 2016 at 5:30 PM, Chris Bieneman <cbieneman at apple.com> wrote:
[ brutal-snip ]
...
> [ TODO#S: Before doing a 2nd build (and in a 3rd run using more
> optimized binaries) ]
>
> How do I anable LTO via CMAKE?
>
>
> LLVM_ENALBLE_LTO=On
>
[ v4 of my build-script attached ]
Hi Chris,
thanks for the response!
That seems to work (see below).
$ cd
2017 May 03
3
Runtime-configurable LLVM_DEFAULT_TARGET_TRIPLE by env var
I have been working for extending test coverage for years.
Nowadays, I have several cross-testing (target != host). See
http://bb.pgr.jp/console
Each of them (test-*-linux) is doing;
- Assume a preceding builder passes with warming ccache.
- All compilation units will hit ccache whenever the tree is built before
lit.
- Almost all compilation units will hit ccache except for Host.cpp when
2015 Feb 12
3
[LLVMdev] Noop in sys::getDefaultTargetTriple()?
Hello,
I was looking at sys::getDefaultTargetTriple() (file:
lib/Support/Unix/Host.inc ) and there is something
unclear to me.
std::string sys::getDefaultTargetTriple() {
StringRef TargetTripleString(LLVM_DEFAULT_TARGET_TRIPLE);
std::pair<StringRef, StringRef> ArchSplit = TargetTripleString.split('-');
// Normalize the arch, since the target triple may not actually
2016 Dec 02
2
Failed to configure LLVM for use with Musl
I want to build LLVM-based toolchain with Musl, I have LLVM sources with clang and lld (under `tools` directory) and libunwind, compiler-rt, libcxx and libcxxabi (under `projects` directory). All are the latest versions cloned from GitHub mirror, branch `master`.
I'm trying to configure with the following options:
CLANG_DEFAULT_CXX_STDLIB = libc++
CLANG_DEFAULT_RTLIB = compiler-rt
2014 Sep 11
3
[LLVMdev] patch for DragonEgg 3.3
Hi - attached is a patch to enable building DragonEgg (x86_64) for LLVM3.3 and LLVM3.4. That is, add these changes to the 3.3 release, and it becomes possible to build DragonEgg against a llvm3.4 compiler.
Regards,
Richard Gorton
Cognitive Electronics
rcgorton at cog-e.com
----------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name:
2009 Dec 02
0
[LLVMdev] Running CodeGen/Generic tests on different targets
Is there a simple way to override the target triple used in when running
the generic codegen tests? I would expect that passing a value for
TARGET_TRIPLE to make, as below, would do it but none of the tests
appear to use the target_triplet variable generated in site.exp.
> make TESTSUITE=CodeGen/Generic TARGET_TRIPLE=msp430-none-none check
-Ken
2016 Dec 16
2
libcompiler_rt.so and libcompiler_rt.a are not being built
I want to build LLVM-based toolchain with Musl, I have LLVM sources with clang and lld (under `tools` directory) and libunwind, compiler-rt, libcxx and libcxxabi (under `projects` directory). All are the latest versions cloned from GitHub mirror, branch `master`.
I'm trying to configure with the following options:
CLANG_DEFAULT_CXX_STDLIB = libc++
CLANG_DEFAULT_RTLIB = compiler-rt
2016 Dec 19
0
libcompiler_rt.so and libcompiler_rt.a are not being built
> On Dec 18, 2016, at 3:48 AM, Dmitry Golovin <dima at golovin.in> wrote:
>
>
>
> 16.12.2016, 18:23, "Vedant Kumar" <vsk at apple.com>:
>>> On Dec 16, 2016, at 7:06 AM, Dmitry Golovin via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>>>
>>> I want to build LLVM-based toolchain with Musl, I have LLVM sources with clang and