Displaying 7 results from an estimated 7 matches for "append_if".
2016 Jun 19
2
Linker failures in debug build - compiler/linker poll?
...les/HandleLLVMOptions.cmake
+++ b/cmake/modules/HandleLLVMOptions.cmake
@@ -159,7 +159,13 @@ endif()
if(NOT WIN32 AND NOT CYGWIN)
# MinGW warns if -fvisibility-inlines-hidden is used.
check_cxx_compiler_flag("-fvisibility-inlines-hidden"
SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG)
- append_if(SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
"-fvisibility-inlines-hidden" CMAKE_CXX_FLAGS)
+
+ # The flag also hides inlines from explicit template instantiations,
which
+ # leads to link failures in debug builds at least with gcc 5.3.1 and
+ # both GNU ld 2.26 or gold 1.11.
+ if (NOT up...
2016 Mar 18
2
Building with LLVM_PARALLEL_XXX_JOBS
...n written to:
> /home/wearefam/src/llvm-toolchain/llvm-build
>
> Do you need more input?
>
> Thanks!
>
I found in "http://llvmweekly.org/issue/110"
[ llvm.src/cmake/modules/HandleLLVMOptions.cmake ]
option(LLVM_ENABLE_LTO "Enable link-time optimization" OFF)
append_if(LLVM_ENABLE_LTO "-flto"
CMAKE_CXX_FLAGS
CMAKE_C_FLAGS
CMAKE_EXE_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS)
Searching for...
$ grep LLVM_ENABLE_LTO llvm/cmake/modules/HandleLLVMOptions.cmake
[ OUTPUT EMPTY ]
...gives no output.
So, LLVM_ENABLE_LTO is not available for LLVM/Clang v3.8.0?!...
2016 Nov 17
2
"-stdlib=libc++" applied to CMAKE_CXX_FLAGS
llvm/cmake/modules/HandleLLVMStdlib.cmake specifies "-stdlib=libc++" for
CMAKE_CXX_FLAGS when LLVM_ENABLE_LIBCXX and CXX_SUPPORTS_STDLIB. From what
I can see this is a flag intended for the linker and not the compiler.
I'd like to submit a change to delete CMAKE_CXX_FLAGS from this append() but
I wanted to check in with the list to see if that makes sense or if there
are other
2016 Dec 20
0
(Thin)LTO llvm build
...to=thin" CMAKE_CXX_FLAGS CMAKE_C_FLAGS
CMAKE_EXE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS)
# On darwin, enable the lto cache. This improves initial build time a little
# since we re-link a lot of the same objects, and significantly improves
# incremental build time.
append_if(APPLE "-Wl,-cache_path_lto,${PROJECT_BINARY_DIR}/lto.cache"
CMAKE_EXE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS)
—
Mehdi
> -Wl,-plugin-opt,-function-sections \
> -Wl,-plugin-opt,-data-sections \
>
> Any idea why lldb-argdumper would fail to link reprodu...
2016 Mar 03
3
Building with LLVM_PARALLEL_XXX_JOBS
I had only a quick view on the blog-texts.
It might be that a CLANG generated with LTO/PGO speeds up the build.
Can you confirm this?
Can you confirm binutils-gold speed up the build?
Has LLVM an own linker?
Can be used? Speedup the build?
Yesterday night I loooked through available CMAKE/LLVM variables...
### GOLD
# CMAKE_LINKER:FILEPATH=/usr/bin/ld
#
2016 Dec 20
6
(Thin)LTO llvm build
Hi again, Teresa.
Looks like I had forgotten to report back with success
when finally building 3.9.0 in ThinLTO linker mode
back in October. Sorry about that and thanks for
helping me out. I know how important it is to get
success reports as well, as a developer myself,
so sorry again :(.
While that worked back then, last weekend I tried to
build 3.9.1 using 3.9.0 as installed from Arch Linux
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