File tree 7 files changed +26
-2
lines changed
7 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ cmake_minimum_required(VERSION 3.4.3)
9
9
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR OR COMPILER_RT_STANDALONE_BUILD)
10
10
project (CompilerRT C CXX ASM)
11
11
set (COMPILER_RT_STANDALONE_BUILD TRUE )
12
+ set_property (GLOBAL PROPERTY USE_FOLDERS ON )
12
13
endif ()
13
14
14
15
# Add path for custom compiler-rt modules.
@@ -63,6 +64,11 @@ set(COMPILER_RT_BAREMETAL_BUILD OFF CACHE BOOLEAN
63
64
64
65
if (COMPILER_RT_STANDALONE_BUILD)
65
66
load_llvm_config()
67
+ if (TARGET intrinsics_gen)
68
+ # Loading the llvm config causes this target to be imported so place it
69
+ # under the appropriate folder in an IDE.
70
+ set_target_properties (intrinsics_gen PROPERTIES FOLDER "Compiler-RT Misc" )
71
+ endif ()
66
72
67
73
# Find Python interpreter.
68
74
set (Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5)
Original file line number Diff line number Diff line change @@ -204,6 +204,8 @@ function(add_compiler_rt_runtime name type)
204
204
# If the parent targets aren't created we should create them
205
205
if (NOT TARGET ${LIB_PARENT_TARGET} )
206
206
add_custom_target (${LIB_PARENT_TARGET} )
207
+ set_target_properties (${LIB_PARENT_TARGET} PROPERTIES
208
+ FOLDER "Compiler-RT Misc" )
207
209
endif ()
208
210
if (NOT TARGET install -${LIB_PARENT_TARGET} )
209
211
# The parent install target specifies the parent component to scrape up
@@ -500,6 +502,7 @@ macro(add_custom_libcxx name prefix)
500
502
COMMENT "Clobbering ${name} build and stamp directories"
501
503
USES_TERMINAL
502
504
)
505
+ set_target_properties (${name} -clear PROPERTIES FOLDER "Compiler-RT Misc" )
503
506
504
507
add_custom_command (
505
508
OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /${name} -clobber-stamp
@@ -512,6 +515,7 @@ macro(add_custom_libcxx name prefix)
512
515
513
516
add_custom_target (${name} -clobber
514
517
DEPENDS ${CMAKE_CURRENT_BINARY_DIR} /${name} -clobber-stamp)
518
+ set_target_properties (${name} -clobber PROPERTIES FOLDER "Compiler-RT Misc" )
515
519
516
520
set (PASSTHROUGH_VARIABLES
517
521
CMAKE_C_COMPILER_TARGET
Original file line number Diff line number Diff line change @@ -230,6 +230,7 @@ macro(darwin_add_builtin_library name suffix)
230
230
231
231
list (APPEND ${LIB_OS} _${suffix} _libs ${libname} )
232
232
list (APPEND ${LIB_OS} _${suffix} _lipo_flags -arch ${arch} $<TARGET_FILE:${libname} >)
233
+ set_target_properties (${libname} PROPERTIES FOLDER "Compiler-RT Libraries" )
233
234
endmacro ()
234
235
235
236
function (darwin_lipo_libs name )
@@ -251,6 +252,7 @@ function(darwin_lipo_libs name)
251
252
add_dependencies (${LIB_PARENT_TARGET} ${name} )
252
253
install (FILES ${LIB_OUTPUT_DIR} /lib${name} .a
253
254
DESTINATION ${LIB_INSTALL_DIR} )
255
+ set_target_properties (${name} PROPERTIES FOLDER "Compiler-RT Misc" )
254
256
else ()
255
257
message (WARNING "Not generating lipo target for ${name} because no input libraries exist." )
256
258
endif ()
Original file line number Diff line number Diff line change 94
94
add_custom_target (SanitizerLintCheck
95
95
COMMAND echo "No lint check" )
96
96
endif ()
97
-
97
+ set_target_properties (SanitizerLintCheck
98
+ PROPERTIES FOLDER "Compiler-RT Misc" )
Original file line number Diff line number Diff line change @@ -12,7 +12,14 @@ check_include_file(unwind.h HAVE_UNWIND_H)
12
12
add_custom_target (compiler-rt ALL )
13
13
add_custom_target (install -compiler-rt)
14
14
add_custom_target (install -compiler-rt-stripped)
15
- set_target_properties (compiler-rt PROPERTIES FOLDER "Compiler-RT Misc" )
15
+ set_property (
16
+ TARGET
17
+ compiler-rt
18
+ install -compiler-rt
19
+ install -compiler-rt-stripped
20
+ PROPERTY
21
+ FOLDER "Compiler-RT Misc"
22
+ )
16
23
17
24
# Setting these variables from an LLVM build is sufficient that compiler-rt can
18
25
# construct the output paths, so it can behave as if it were in-tree here.
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ if(APPLE)
139
139
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /go
140
140
COMMENT "Checking TSan Go runtime..."
141
141
VERBATIM )
142
+ set_target_properties (GotsanRuntimeCheck PROPERTIES FOLDER "Compiler-RT Misc" )
142
143
else ()
143
144
foreach (arch ${TSAN_SUPPORTED_ARCH} )
144
145
if (arch STREQUAL "x86_64" )
@@ -234,6 +235,7 @@ if(COMPILER_RT_LIBCXX_PATH AND
234
235
endforeach ()
235
236
236
237
add_custom_target (libcxx_tsan DEPENDS ${libcxx_tsan_deps} )
238
+ set_target_properties (libcxx_tsan PROPERTIES FOLDER "Compiler-RT Misc" )
237
239
endif ()
238
240
239
241
if (COMPILER_RT_INCLUDE_TESTS)
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ append_list_if(COMPILER_RT_HAS_LIBRT rt DD_LINKLIBS)
17
17
append_list_if(COMPILER_RT_HAS_LIBPTHREAD pthread DD_LINKLIBS)
18
18
19
19
add_custom_target (dd)
20
+ set_target_properties (dd PROPERTIES FOLDER "Compiler-RT Misc" )
21
+
20
22
# Deadlock detector is currently supported on 64-bit Linux only.
21
23
if (CAN_TARGET_x86_64 AND UNIX AND NOT APPLE AND NOT ANDROID)
22
24
set (arch "x86_64" )
You can’t perform that action at this time.
0 commit comments