1 import("//compiler-rt/target.gni")
3 static_library("profile") {
4 output_dir = crt_current_out_dir
5 if (current_os == "mac") {
6 output_name = "clang_rt.profile_osx"
8 output_name = "clang_rt.profile$crt_current_target_suffix"
11 complete_static_lib = true
12 configs -= [ "//llvm/utils/gn/build:thin_archive" ]
15 if (target_os != "win") {
21 # This appears to be a C-only warning banning the use of locals in
22 # aggregate initializers. All other compilers accept this, though.
23 # nonstandard extension used : 'identifier' :
24 # cannot be initialized using address of automatic variable
25 cflags += [ "/wd4221" ]
32 "InstrProfilingBuffer.c",
33 "InstrProfilingFile.c",
34 "InstrProfilingInternal.h",
35 "InstrProfilingMerge.c",
36 "InstrProfilingMergeFile.c",
37 "InstrProfilingNameVar.c",
38 "InstrProfilingPlatformDarwin.c",
39 "InstrProfilingPlatformFuchsia.c",
40 "InstrProfilingPlatformLinux.c",
41 "InstrProfilingPlatformOther.c",
42 "InstrProfilingPlatformWindows.c",
43 "InstrProfilingPort.h",
44 "InstrProfilingRuntime.cpp",
45 "InstrProfilingUtil.c",
46 "InstrProfilingUtil.h",
47 "InstrProfilingValue.c",
48 "InstrProfilingWriter.c",
50 if (target_os == "win") {
57 if (target_os != "win") {
59 "COMPILER_RT_TARGET_HAS_ATOMICS",
60 "COMPILER_RT_TARGET_HAS_FCNTL_LCK",
61 "COMPILER_RT_TARGET_HAS_UNAME",