File tree Expand file tree Collapse file tree
utils/bazel/llvm-project-overlay/compiler-rt Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,18 +11,24 @@ package(
1111
1212licenses (["notice" ])
1313
14+ POSIX_PROFILE_DEFINES = [
15+ "COMPILER_RT_HAS_ATOMICS=1" ,
16+ "COMPILER_RT_HAS_FCNTL_LCK=1" ,
17+ "COMPILER_RT_HAS_UNAME=1" ,
18+ ]
19+
1420cc_library (
1521 name = "config" ,
1622 defines = select ({
17- "@platforms//os:linux" : [
18- "COMPILER_RT_HAS_ATOMICS=1" ,
19- "COMPILER_RT_HAS_FCNTL_LCK=1" ,
20- "COMPILER_RT_HAS_UNAME=1" ,
21- ],
23+ "@platforms//os:ios" : POSIX_PROFILE_DEFINES ,
24+ "@platforms//os:linux" : POSIX_PROFILE_DEFINES ,
25+ "@platforms//os:macos" : POSIX_PROFILE_DEFINES ,
2226 # Will raise error unless supported platforms.
2327 }),
2428 target_compatible_with = select ({
29+ "@platforms//os:ios" : [],
2530 "@platforms//os:linux" : [],
31+ "@platforms//os:macos" : [],
2632 "//conditions:default" : ["@platforms//:incompatible" ],
2733 }),
2834)
You can’t perform that action at this time.
0 commit comments