Displaying 17 results from an estimated 17 matches for "endforeach".
2018 Apr 11
2
[compiler-rt] r329776 - [XRay][compiler-rt] Fix osx-based builds
...xray_unittest testname)
> cmake_parse_arguments(TEST "" "" "SOURCES;HEADERS" ${ARGN})
> if(UNIX AND NOT APPLE)
> set(CMAKE_DL_LIBS_INIT "")
> - foreach(lib ${CMAKE_DL_LIBS})
> - list(APPEND CMAKE_DL_LIBS_INIT -l${lib})
> - endforeach()
> foreach(arch ${XRAY_TEST_ARCH})
> set(TEST_OBJECTS)
> get_xray_lib_for_arch(${arch} XRAY_RUNTIME_LIBS)
> @@ -55,9 +60,7 @@ macro(add_xray_unittest testname)
> RUNTIME "${XRAY_RUNTIME_LIBS}"
> DEPS gtest xray
> CFLAGS ${XRAY_...
2014 Feb 13
3
[LLVMdev] cmake/ninja build failing
...K_DIR is the path including spaces and parens.
>
> It looks like the _CFLAGS values are used in the module
> cmake/Modules/CompilerRTUtils.cmake:
>
> function(set_target_compile_flags target)
> foreach(arg ${ARGN})
> set(argstring "${argstring} ${arg}")
> endforeach()
> set_property(TARGET ${target} PROPERTY COMPILE_FLAGS "${argstring}")
> endfunction()
>
> but that makes no attempt to escape or quote anything.
>
> The COMPILE_FLAGS target property was a very early CMake feature
> and is treated as a raw string to put on the...
2018 Apr 11
0
[compiler-rt] r329776 - [XRay][compiler-rt] Fix osx-based builds
...e)
>> cmake_parse_arguments(TEST "" "" "SOURCES;HEADERS" ${ARGN})
>> if(UNIX AND NOT APPLE)
>> set(CMAKE_DL_LIBS_INIT "")
>> - foreach(lib ${CMAKE_DL_LIBS})
>> - list(APPEND CMAKE_DL_LIBS_INIT -l${lib})
>> - endforeach()
>> foreach(arch ${XRAY_TEST_ARCH})
>> set(TEST_OBJECTS)
>> get_xray_lib_for_arch(${arch} XRAY_RUNTIME_LIBS)
>> @@ -55,9 +60,7 @@ macro(add_xray_unittest testname)
>> RUNTIME "${XRAY_RUNTIME_LIBS}"
>> DEPS gtest xray
>>...
2014 Jul 08
2
[LLVMdev] [compiler-rt] clang_rt.builtins-${arch} library on windows
...set_source_files_properties(${${arch}_SOURCES} PROPERTIES
LANGUAGE C)
add_compiler_rt_runtime(clang_rt.builtins-${arch} ${arch} STATIC
SOURCES ${${arch}_SOURCES}
CFLAGS "-std=c99")
add_dependencies(builtins clang_rt.builtins-${arch})
endif()
endforeach()
endif()
--Sumanth G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140708/68964ba5/attachment.html>
2014 Feb 12
2
[LLVMdev] cmake/ninja build failing
A couple of llvm sub-projects have been failing to build for me for a while (compiler-rt asan and util/unittests, at least). It turns out to be due to the fact that some paths on my system include spaces and other special characters, but the the build.ninja file was not generated with correctly quoted strings. Specifically I'm on OS X and the command is setting -isysroot to a location inside
2010 Mar 06
0
[LLVMdev] [PATCH]: MSVC build enhancements
...CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
> + if(${flag_var} MATCHES "/MD")
> + string(REGEX REPLACE "/MD" "/${LLVM_USE_CRT}" ${flag_var} "${${flag_var}}")
> + endif(${flag_var} MATCHES "/MD")
> + endforeach(flag_var)
> message(STATUS "Using VC++ CRT: ${LLVM_USE_CRT}")
> endif (NOT ${LLVM_USE_CRT} STREQUAL "")
Ugh! Well, if this is the only way... However, AFAIK the last flag is
the one that prevails, and that's the one introduced by
add_llvm_definitions. What'...
2015 Jan 27
3
[LLVMdev] build failure on mingw gcc 4.9.1
On Tue, Jan 27, 2015 at 10:02 AM, Mueller-Roemer, Johannes Sebastian
<Johannes.Sebastian.Mueller-Roemer at igd.fraunhofer.de> wrote:
> Adding -D__MSVCRT_VERSION__=0x900 (or higher) to CMAKE_CXX_FLAGS and
> -lmsvcr90 (or higher) to CMAKE_CXX_STANDARD_LIBRARIES appears to work.
> -lmsvcrt80 does not work, contrary to the comment on the MinGW bug tracker.
> However, if you do not
[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)
...)
> > + if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt)
> > + get_filename_component(projName ${entry} NAME)
> > + llvm_ExternalProject_Add(${projName} ${entry} USE_TOOLCHAIN)
> > + add_dependencies(runtimes ${projName})
> > + endif()
> > +endforeach(entry)
> > Index: cmake/modules/LLVMExternalProjectUtils.cmake
> > ===================================================================
> > --- cmake/modules/LLVMExternalProjectUtils.cmake
> > +++ cmake/modules/LLVMExternalProjectUtils.cmake
> > @@ -29,7 +29,8 @@
> &...
2013 Mar 25
0
[LLVMdev] undefined reference to 'llvm_gcda_start_file', 'llvm_gcda_emit_arcs', etc
...g
this for Mac?
My raw idea is to add this to compiler-rt/lib/profile/CMakeLists.txt
if(APPLE)
foreach(arch ${PROFILE_SUPPORTED_ARCH})
add_compiler_rt_static_runtime(clang_rt.profile-${arch} ${arch}
SOURCES ${PROFILE_SOURCES}
CFLAGS --sysroot=${COMPILER_RT_DARWIN_SDK_SYSROOT})
endforeach()
endif()
Do you think it will then support Mac?
Longyi
On Tue, Mar 19, 2013 at 4:20 AM, Alexey Samsonov <samsonov at google.com>wrote:
> Hi!
>
> On Fri, Mar 15, 2013 at 10:51 PM, Qun Fa <testforqunfa at gmail.com> wrote:
>
>> Thank you Alexey.
>>
>>...
2013 Mar 25
1
[LLVMdev] undefined reference to 'llvm_gcda_start_file', 'llvm_gcda_emit_arcs', etc
...add this to compiler-rt/lib/profile/CMakeLists.txt
>
> if(APPLE)
> foreach(arch ${PROFILE_SUPPORTED_ARCH})
> add_compiler_rt_static_runtime(clang_rt.profile-${arch} ${arch}
> SOURCES ${PROFILE_SOURCES}
> CFLAGS --sysroot=${COMPILER_RT_DARWIN_SDK_SYSROOT})
> endforeach()
> endif()
>
>
> Do you think it will then support Mac?
>
Generally we build universal libraries on Mac OS X, so that one static
library has sources compiled for
multiple arches. I've added basic Mac support in r177870, hope this will
work for you.
>
> Longyi
>
>...
[RFC] LLVM Directory Structure Changes (was Re: [PATCH] D20992: [CMake] Add LLVM runtimes directory)
2016 Jun 09
2
[RFC] LLVM Directory Structure Changes (was Re: [PATCH] D20992: [CMake] Add LLVM runtimes directory)
...AND EXISTS ${entry}/CMakeLists.txt)
>>> > + get_filename_component(projName ${entry} NAME)
>>> > + llvm_ExternalProject_Add(${projName} ${entry} USE_TOOLCHAIN)
>>> > + add_dependencies(runtimes ${projName})
>>> > + endif()
>>> > +endforeach(entry)
>>> > Index: cmake/modules/LLVMExternalProjectUtils.cmake
>>> > ===================================================================
>>> > --- cmake/modules/LLVMExternalProjectUtils.cmake
>>> > +++ cmake/modules/LLVMExternalProjectUtils.cmake
&g...
2014 Jan 22
2
[LLVMdev] compiler-rt for ARM-Linux with CMake?
On 20 December 2013 10:43, Alexey Samsonov <samsonov at google.com> wrote:
> There are simply no CMake build rules for building compiler-rt
> libraries targeting ARM (see compiler-rt/lib/CMakeLists.txt).
>
Hi Alexey,
I've added the ARM files on that CMake file but I got nothing compiled on
ARM. Am I missing something?
About the sanitizers, is there anyone that is known to
2013 Mar 19
2
[LLVMdev] undefined reference to 'llvm_gcda_start_file', 'llvm_gcda_emit_arcs', etc
Hi!
On Fri, Mar 15, 2013 at 10:51 PM, Qun Fa <testforqunfa at gmail.com> wrote:
> Thank you Alexey.
>
> I have tried to use Makefile. This will generate the correct symbols that
> I need.
>
> Any idea on the schedule of adding CMake support to compiler-rt?
>
Starting from r177382 CMake on Linux should build the same profile
compiler-rt library
as Makefiles.
>
2010 Mar 06
6
[LLVMdev] [PATCH]: MSVC build enhancements
Attached are two patches with MSVC build enchancements.
They are quite trivial, but were necessary to correctly link LLVM
libraries with Mesa3D on Windows.
Jose
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Allow-to-build-against-static-MSVC-runtime.patch
Type: text/x-patch
Size: 2055 bytes
Desc: not available
URL:
2019 Jan 24
2
[Release-testers] [8.0.0 Release] rc1 has been tagged
On Thu, 2019-01-24 at 19:58 +0100, Dimitry Andric via Release-testers
wrote:
> On 24 Jan 2019, at 01:49, Hans Wennborg via Release-testers <release-testers at lists.llvm.org> wrote:
> >
> > 8.0.0-rc1 was just tagged (from the branch at r351980).
> >
> > It took a little longer than planned, but it's looking good.
> >
> > Please run the test
[RFC] LLVM Directory Structure Changes (was Re: [PATCH] D20992: [CMake] Add LLVM runtimes directory)
2016 Jun 10
4
[RFC] LLVM Directory Structure Changes (was Re: [PATCH] D20992: [CMake] Add LLVM runtimes directory)
...>>>> > + get_filename_component(projName ${entry} NAME)
>>>>> > + llvm_ExternalProject_Add(${projName} ${entry} USE_TOOLCHAIN)
>>>>> > + add_dependencies(runtimes ${projName})
>>>>> > + endif()
>>>>> > +endforeach(entry)
>>>>> > Index: cmake/modules/LLVMExternalProjectUtils.cmake
>>>>> > ===================================================================
>>>>> > --- cmake/modules/LLVMExternalProjectUtils.cmake
>>>>> > +++ cmake/modules/L...
2014 Nov 03
8
[LLVMdev] [PATCH] Protection against stack-based memory corruption errors using SafeStack
...${SAFESTACK_SUPPORTED_ARCH})
+ add_compiler_rt_runtime(clang_rt.safestack-${arch} ${arch} STATIC
+ SOURCES ${SAFESTACK_SOURCES}
+ $<TARGET_OBJECTS:RTInterception.${arch}>
+ CFLAGS ${SAFESTACK_CFLAGS})
+ add_dependencies(safestack clang_rt.safestack-${arch})
+ endforeach()
+endif()
diff --git a/lib/safestack/Makefile.mk b/lib/safestack/Makefile.mk
new file mode 100644
index 0000000..d89af25
--- /dev/null
+++ b/lib/safestack/Makefile.mk
@@ -0,0 +1,23 @@
+#===- lib/safestack/Makefile.mk ------------------------------*- Makefile -*--===#
+#
+# The...