summaryrefslogtreecommitdiffstats
path: root/llvm/utils/gn/secondary/clang/tools
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/gn/secondary/clang/tools')
-rw-r--r--llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn b/llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn
index c2fad99acf5..7417e5982ee 100644
--- a/llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn
@@ -12,8 +12,8 @@ import("//llvm/version.gni")
# - the GN build doesn't have LIBCLANG_BUILD_STATIC
libclang_target_type = "shared_library"
-if (host_os == "linux") {
- # Linux needs -fPIC to build shared libs but they aren't on by default.
+if (host_os != "win" && host_os != "mac") {
+ # ELF targets need -fPIC to build shared libs but they aren't on by default.
# For now, make libclang a static lib there.
libclang_target_type = "static_library"
}
OpenPOWER on IntegriCloud