search for: link_flags

Displaying 15 results from an estimated 15 matches for "link_flags".

2017 Aug 24
3
Building LLVM's fuzzers
...eason why you don’t see the failure on Linux) 1 if(NOT LLVM_NO_DEAD_STRIP) 2 if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") 3 # ld64's implementation of -dead_strip breaks tools that use plugins. 4 set_property(TARGET ${target_name} APPEND_STRING PROPERTY 5 LINK_FLAGS " -Wl,-dead_strip") 6 elseif(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") 7 set_property(TARGET ${target_name} APPEND_STRING PROPERTY 8 LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections") 9 elseif(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD) 10 # Obje...
2016 Jul 11
2
LibC++ failure on ARM
...-- Compiled test failed unexpectedly! ******************** This is the patch that changed the configuration: http://llvm.org/viewvc/llvm-project?view=revision&revision=274747 and the only thing I can think could have caused it is the change in librry order: - lit_extra_opts={'link_flags': '"-lc++abi -lc -lm -lpthread -lunwind -ldl -L/opt/llvm/lib/clang/3.6.0/lib/linux -lclang_rt.builtins-arm"'}, + lit_extra_opts={'link_flags': '"-lc++abi -lpthread -lunwind -ldl -lc -lm -L/opt/llvm/lib/clang/3.6.0/lib/linux -lclang_rt.builtins-arm&q...
2017 Aug 24
2
Building LLVM's fuzzers
...*if*(NOT LLVM_NO_DEAD_STRIP) >> 2 *if*(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") >> 3 # ld64's implementation of -dead_strip breaks tools that use >> plugins. >> 4 set_property(TARGET ${target_name} APPEND_STRING PROPERTY >> 5 LINK_FLAGS " -Wl,-dead_strip") >> 6 *elseif*(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") >> 7 set_property(TARGET ${target_name} APPEND_STRING PROPERTY >> 8 LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections") >> 9 *elseif*(NOT WIN32 AN...
2018 Apr 11
2
[compiler-rt] r329776 - [XRay][compiler-rt] Fix osx-based builds
...iler-rt/trunk/lib/xray/tests/CMakeLists.txt (original) > +++ compiler-rt/trunk/lib/xray/tests/CMakeLists.txt Tue Apr 10 22:16:11 2018 > @@ -34,13 +34,18 @@ function(get_xray_lib_for_arch arch lib) > endfunction() > > set(XRAY_TEST_ARCH ${XRAY_SUPPORTED_ARCH}) > +set(XRAY_UNITTEST_LINK_FLAGS ${CMAKE_THREAD_LIBS_INIT}) > +if (NOT APPLE) > + append_list_if(COMPILER_RT_HAS_LIBM -lm XRAY_UNITTEST_LINK_FLAGS) > + append_list_if(COMPILER_RT_HAS_LIBRT -lrt XRAY_UNITTEST_LINK_FLAGS) > + append_list_if(COMPILER_RT_HAS_LIBDL -ldl XRAY_UNITTEST_LINK_FLAGS) > + append_list_if(CO...
2017 Aug 24
4
Building LLVM's fuzzers
...t; 2 *if*(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") >> >> 3 # ld64's implementation of -dead_strip breaks tools that use >> >> plugins. >> >> 4 set_property(TARGET ${target_name} APPEND_STRING PROPERTY >> >> 5 LINK_FLAGS " -Wl,-dead_strip") >> >> 6 *elseif*(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") >> >> 7 set_property(TARGET ${target_name} APPEND_STRING PROPERTY >> >> 8 LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections") >>...
2018 Apr 11
0
[compiler-rt] r329776 - [XRay][compiler-rt] Fix osx-based builds
...ests/CMakeLists.txt (original) >> +++ compiler-rt/trunk/lib/xray/tests/CMakeLists.txt Tue Apr 10 22:16:11 2018 >> @@ -34,13 +34,18 @@ function(get_xray_lib_for_arch arch lib) >> endfunction() >> >> set(XRAY_TEST_ARCH ${XRAY_SUPPORTED_ARCH}) >> +set(XRAY_UNITTEST_LINK_FLAGS ${CMAKE_THREAD_LIBS_INIT}) >> +if (NOT APPLE) >> + append_list_if(COMPILER_RT_HAS_LIBM -lm XRAY_UNITTEST_LINK_FLAGS) >> + append_list_if(COMPILER_RT_HAS_LIBRT -lrt XRAY_UNITTEST_LINK_FLAGS) >> + append_list_if(COMPILER_RT_HAS_LIBDL -ldl XRAY_UNITTEST_LINK_FLAGS) >>...
2017 Aug 24
3
Building LLVM's fuzzers
...} MATCHES "Darwin") >>>> >> 3 # ld64's implementation of -dead_strip breaks tools that use >>>> >> plugins. >>>> >> 4 set_property(TARGET ${target_name} APPEND_STRING PROPERTY >>>> >> 5 LINK_FLAGS " -Wl,-dead_strip") >>>> >> 6 *elseif*(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") >>>> >> 7 set_property(TARGET ${target_name} APPEND_STRING PROPERTY >>>> >> 8 LINK_FLAGS " -Wl,-z -Wl,discard-unused=...
2017 Aug 25
2
Building LLVM's fuzzers
...t;>>> >> 3 # ld64's implementation of -dead_strip breaks tools that > use > >>>>> >> plugins. > >>>>> >> 4 set_property(TARGET ${target_name} APPEND_STRING PROPERTY > >>>>> >> 5 LINK_FLAGS " -Wl,-dead_strip") > >>>>> >> 6 *elseif*(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") > >>>>> >> 7 set_property(TARGET ${target_name} APPEND_STRING PROPERTY > >>>>> >> 8 LINK_FLAGS "...
2017 Sep 11
2
Building LLVM's fuzzers
...ld64's implementation of -dead_strip breaks tools that >>> use >>> >>>>> >> plugins. >>> >>>>> >> 4 set_property(TARGET ${target_name} APPEND_STRING PROPERTY >>> >>>>> >> 5 LINK_FLAGS " -Wl,-dead_strip") >>> >>>>> >> 6 *elseif*(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") >>> >>>>> >> 7 set_property(TARGET ${target_name} APPEND_STRING PROPERTY >>> >>>>> >> 8...
2017 Dec 26
2
Bootstrapping LLVM+LLD with GCC toolchain failure
Hello, I have a working GCC toolchain and wanted to use LLVM tooling instead. Following the instructions on the website I set up my build directory and have lld as an internal project under tools/. I'd like to make use of lld in stage 2 of the build and thought -DLLVM_ENABLE_LLD was the correct option to pass. However, adding this options makes the configure step fail, complaining that the
2017 Jun 04
2
building llvm_Rel400 on Scientific Linux (RHEL) 7.3 x86_64
...should work. Thanks, Tim. I don't see "-lrt": $BASE/llvm_Rel400/projects/compiler-rt/lib/xray/tests/CMakeLists.txt 43 if(NOT APPLE) 44 add_compiler_rt_test(XRayUnitTests ${testname} 45 OBJECTS ${TEST_OBJECTS} 46 DEPS ${TEST_DEPS} 47 LINK_FLAGS ${TARGET_LINK_FLAGS} 48 -lstdc++ -lm ${CMAKE_THREAD_LIBS_INIT} 49 -lpthread 50 -L${COMPILER_RT_LIBRARY_OUTPUT_DIR} -lclang_rt.xray-fdr-${arch}) 51 endif()
2017 Aug 24
3
Building LLVM's fuzzers
George Karpenkov <ekarpenkov at apple.com> writes: > OK so with Kuba’s help I’ve found the error: with optimization, dead > stripping of produced libraries is enabled, > which removes coverage instrumentation. > > However, this has nothing to do with the move to compiler-rt, so I’m > quite skeptical on whether it has worked > beforehand. > > A trivial fix is to do:
2014 Feb 13
3
[LLVMdev] cmake/ninja build failing
Well, I updated to cmake 2.8.12.2 but the result of changing that COMPILE_FLAGS to COMPILE_OPTIONS is that quotes are applied incorrectly: quotes are added surrounding the entire set of flags rather than around each individual item in the list. Obviously the build doesn't work (with the compiler looking for files named " -m64 ... ") but checking the relevant build command in
2017 Jun 03
2
building llvm_Rel400 on Scientific Linux (RHEL) 7.3 x86_64
Hi, I am trying to build the LLVM suite on a RedHat Enterprise Linux clone (Scientific Linux <https://www.scientificlinux.org/>). In the latest attempt, the build seems to complete without any explicit failures but the `check-all` process fails. Any ideas about what is wrong or suggestions for how to proceed would be much appreciated. This is the current procedure: sudo yum install
2013 Jul 31
29
[PATCH 0/9] tools: remove or disable old/useless/unused/unmainted stuff
depends on "autoconf: regenerate configure scripts with 4.4 version" This series removes some of the really old deadwood from the tools build and makes some other things which are on their way out configurable at build time with a default depending on how far down the slope I judge them to be. * nuke in tree copy of libaio * nuke obsolete tools: xsview, miniterm, lomount & sv *