Skip to content

Commit eb041e2

Browse files
vonosmasmahesh-attarde
authored andcommitted
[libc][bazel] Allow building llvm_libc_types_float128 on Windows. (llvm#150704)
This target was marked as Linux-only in 51a4ab2 to make "bazel build @llvm-project//libc/..." clean (which it still is). There's nothing Linux-specific about this header library, we just use "target_incompatible_with" clause here to ensure that all libc functions for float128 types won't be built on Mac, in lieu of a better exclusion mechanism in Bazel. However, since llvm_libc_types_float128 is now a transitive dependency of ":libcxx_shared_headers" used for hand-in-hand code sharing with libc++, we may need to build this target even on platforms that don't have float128. Fow now, mark this target Windows-compatible to unlock the downstream Windows Bazel build of ":libcxx_shared_headers".
1 parent 34a23bd commit eb041e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/bazel/llvm-project-overlay/libc/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ libc_support_library(
159159
hdrs = ["include/llvm-libc-types/float128.h"],
160160
target_compatible_with = select({
161161
"@platforms//os:linux": [],
162+
"@platforms//os:windows": [],
162163
"//conditions:default": ["@platforms//:incompatible"],
163164
}),
164165
deps = [":llvm_libc_macros_float_macros"],

0 commit comments

Comments
 (0)