summaryrefslogtreecommitdiffstats
path: root/llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2019-02-07 21:24:30 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2019-02-07 21:24:30 +0000
commit82bf8e82c96b79fcafea5d0026feab24a270e9af (patch)
treecba488c18dc666f0461dcd7c3b9126a2dc256441 /llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn
parentf557a94aa32cd707a07019f3b35fb6a37f5da7b7 (diff)
downloadbcm5719-llvm-82bf8e82c96b79fcafea5d0026feab24a270e9af.tar.gz
bcm5719-llvm-82bf8e82c96b79fcafea5d0026feab24a270e9af.zip
gn build: Make check-{clang,lld,llvm} pass on FreeBSD.
Mostly achieved by assuming that anything that isn't Win or Mac is ELF, which seems reasonable enough for now. Differential Revision: https://reviews.llvm.org/D57870 llvm-svn: 353470
Diffstat (limited to 'llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn')
-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