@@ -742,12 +742,12 @@ libc_support_library(
742
742
deps = [
743
743
":__support_common" ,
744
744
":__support_cpp_bit" ,
745
- ":__support_sign" ,
746
745
":__support_cpp_type_traits" ,
747
746
":__support_libc_assert" ,
748
747
":__support_macros_attributes" ,
749
748
":__support_macros_properties_types" ,
750
749
":__support_math_extras" ,
750
+ ":__support_sign" ,
751
751
":__support_uint128" ,
752
752
],
753
753
)
@@ -964,11 +964,17 @@ libc_support_library(
964
964
libc_support_library (
965
965
name = "__support_osutil_syscall" ,
966
966
hdrs = ["src/__support/OSUtil/syscall.h" ],
967
- textual_hdrs = [
968
- "src/__support/OSUtil/linux/syscall.h" ,
969
- "src/__support/OSUtil/linux/aarch64/syscall.h" ,
970
- "src/__support/OSUtil/linux/x86_64/syscall.h" ,
971
- ],
967
+ textual_hdrs = select ({
968
+ "@platforms//os:macos" : [
969
+ "src/__support/OSUtil/darwin/syscall.h" ,
970
+ "src/__support/OSUtil/darwin/arm/syscall.h" ,
971
+ ],
972
+ "//conditions:default" : [
973
+ "src/__support/OSUtil/linux/syscall.h" ,
974
+ "src/__support/OSUtil/linux/aarch64/syscall.h" ,
975
+ "src/__support/OSUtil/linux/x86_64/syscall.h" ,
976
+ ],
977
+ }),
972
978
deps = [
973
979
":__support_common" ,
974
980
":__support_cpp_bit" ,
@@ -978,9 +984,10 @@ libc_support_library(
978
984
libc_support_library (
979
985
name = "__support_osutil_io" ,
980
986
hdrs = ["src/__support/OSUtil/io.h" ],
981
- textual_hdrs = [
982
- "src/__support/OSUtil/linux/io.h" ,
983
- ],
987
+ textual_hdrs = select ({
988
+ "@platforms//os:macos" : ["src/__support/OSUtil/darwin/io.h" ],
989
+ "//conditions:default" : ["src/__support/OSUtil/linux/io.h" ],
990
+ }),
984
991
deps = [
985
992
":__support_common" ,
986
993
":__support_cpp_string_view" ,
@@ -992,10 +999,15 @@ libc_support_library(
992
999
libc_support_library (
993
1000
name = "__support_osutil_quick_exit" ,
994
1001
hdrs = ["src/__support/OSUtil/quick_exit.h" ],
995
- textual_hdrs = [
996
- "src/__support/OSUtil/linux/quick_exit.h" ,
997
- #TODO: add support for GPU quick_exit (isn't just in a header.)
998
- ],
1002
+ textual_hdrs = select ({
1003
+ "@platforms//os:macos" : [
1004
+ "src/__support/OSUtil/darwin/quick_exit.h" ,
1005
+ ],
1006
+ "//conditions:default" : [
1007
+ "src/__support/OSUtil/linux/quick_exit.h" ,
1008
+ #TODO: add support for GPU quick_exit (isn't just in a header.)
1009
+ ],
1010
+ }),
999
1011
deps = [
1000
1012
":__support_osutil_syscall" ,
1001
1013
],
@@ -1927,7 +1939,12 @@ libc_math_function(name = "copysignf")
1927
1939
1928
1940
libc_math_function (name = "copysignl" )
1929
1941
1930
- libc_math_function (name = "copysignf128" )
1942
+ libc_math_function (
1943
+ name = "copysignf128" ,
1944
+ additional_deps = [
1945
+ ":llvm_libc_types_float128" ,
1946
+ ],
1947
+ )
1931
1948
1932
1949
libc_math_function (name = "ilogb" )
1933
1950
0 commit comments