Displaying 11 results from an estimated 11 matches for "llvm_enable_zlib".
Did you mean:
dllvm_enable_zlib
2014 Sep 17
2
[LLVMdev] proposal to avoid zlib dependency.
...morrow.
Thanks.
> IMO, it is unnecessary clutter. It will fail if ${ZLIB_LIBRARIES} or ${ZLIB_INCLUDE_DIRS} are used anyways as they will be set to NOTFOUND. Or we go back to a silent-fail solution:
Fair enough. I've never been a big fan of silent failure. So perhaps
just this...
```
if (LLVM_ENABLE_ZLIB )
find_package(ZLIB REQUIRED)
set(HAVE_ZLIB_H 1)
set(HAVE_LIBZ 1)
list(APPEND CMAKE_REQUIRED_LIBRARIES ${ZLIB_LIBRARIES})
list(APPEND CMAKE_REQUIRED_INCLUDES ${ZLIB_INCLUDE_DIRS})
else()
set(HAVE_ZLIB_H 0)
set(HAVE_LIBZ 0)
endif()
```
--
Dan Liew
PhD Student - Imperial Colle...
2013 Dec 11
2
[LLVMdev] -ltinfo and -lz causing problems
On a particular system I am trying to link my application to the LLVM
library
and it can't find -ltinfo and -lz. The former is part of ncurses (build
with term-
info). Building ncurses for this system in user space turns out to be not
straight-forward (haven't succeeded so far).
In LLVM, is there a way to turn the need for -ltinfo and -lz off?
Frank
2014 Sep 17
2
[LLVMdev] proposal to avoid zlib dependency.
...gd.fraunhofer.de> wrote:
> Yes, this is incredibly annoying, so please avoid that. However I noticed that the current solution using CMake is broken, as I cannot enter my own ZLIB_ROOT, since no proper find_package is used.
I just had a go at hacking this so that we use find_package(ZLIB) if
LLVM_ENABLE_ZLIB is used. Does the attached patch work correctly?
If so I could send to llvm-commits for review.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use_find_package_zlib.patch
Type: text/x-patch
Size: 1549 bytes
Desc: not available
URL: <http://lists.llvm.org/pip...
2014 Sep 17
2
[LLVMdev] proposal to avoid zlib dependency.
On 17 September 2014 15:47, Mueller-Roemer, Johannes Sebastian
<Johannes.Sebastian.Mueller-Roemer at igd.fraunhofer.de> wrote:
> It's half the way there. Configuring and compiling works, but linking fails, probably some definition mismatches...
It configured, compiled and linked okay for me. Could you look into it?
>
> But it can definitely be simplified, as due to the
2017 Jul 18
2
PGO, zlib and 'default.profraw'
set LLVM_ENABLE_ZLIB=ON with cmake invocation. zlib should be installed
and zlib.h header file needs to be in the header search path.
Is your llvm-profdata tool built together with clang?
David
On Tue, Jul 18, 2017 at 1:04 PM, Martin J. O'Riordan via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> How...
2014 Sep 17
2
[LLVMdev] proposal to avoid zlib dependency.
On Wed, Sep 17, 2014 at 12:27:42PM +0300, Yaron Keren wrote:
> Large software libraries like OpenCV (under 3rdparty directory) do include
> copies of zlib and friends and build it, for that reasons. The source code
> is just half a megabyte and I think the license is compatible. We could do
> the same with zlib or miniz.
>From a packager's perspective, library bundling is one
2017 Jul 25
2
PGO, zlib and 'default.profraw'
Hi David,
When I use CMake to configure, ‘zlib’ and its header are detected - I build on CentOS 6.5 or CentOS 7. Since I run CMake from the command-line, I tried added ‘-DLLVM_ENABLE_ZLIB=0’ and ‘-DLLVM_ENABLE_ZLIB=1’ (using ‘-DLLVM_ENABLE_ZLIB=ON’ does not seem to work). Both ‘clang’ and ‘llvm-profdata’ (and all other tools and utilities) are configured and built together, in any event, they are both built with ‘zlib’ enabled or ‘zlib’ disabled.
On Windows with VS2015 there is...
2017 Jul 18
4
PGO, zlib and 'default.profraw'
Can we improve the error message here? We should be able to check
zlib::isAvailable and give an error like "profile uses zlib compression
but the profile reader was built without zlib support" or so in this
case.
Xinliang David Li via llvm-dev <llvm-dev at lists.llvm.org> writes:
> The __llvm_prf_names section is compressed but your llvm-profdata tool is
> probably not built
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 Feb 11
2
Asan self host problems: Failed to deallocate
Trying to run a self host "ninja check-clang" with ASan enabled I hit a
/lot/ of errors like this (strangely I hit none of these in check-llvm,
only in check-clang):
Any ideas?
==10525==ERROR: AddressSanitizer failed to deallocate 0x10800 (67584) bytes
at address 0x631000014800
==10525==AddressSanitizer CHECK failed:
2017 Feb 15
2
Asan self host problems: Failed to deallocate
...minfo database if available.
LLVM_ENABLE_TERMINFO:BOOL=ON
//Use threads if available.
LLVM_ENABLE_THREADS:BOOL=ON
//Enable compiler warnings.
LLVM_ENABLE_WARNINGS:BOOL=ON
//Fail and stop if a warning is triggered.
LLVM_ENABLE_WERROR:BOOL=ON
//Use zlib for compression/decompression if available.
LLVM_ENABLE_ZLIB:BOOL=ON
//Semicolon-separated list of experimental targets to build.
LLVM_EXPERIMENTAL_TARGETS_TO_BUILD:STRING=
//Export symbols from LLVM tools so that plugins can import them
LLVM_EXPORT_SYMBOLS_FOR_PLUGINS:BOOL=OFF
//Generate dSYM files and strip executables and libraries (Darwin
// Only)
LLV...