mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
b2837054ff
This adds just enough host shared library support for this one use case, but also takes shortcuts, because fully supporting host shared library is a deep rabbit hole I'm not ready to take just to fix --enable-lto --enable-clang-plugin on mac builds. One downside is that one my machine the plugin now takes > 80s to build, instead of 15s before, thanks to the lack of unified sources. --HG-- extra : rebase_source : bf52a72a01d4e3eb77cf52b646b19734b9273075
17 lines
556 B
Makefile
17 lines
556 B
Makefile
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
HOST_LDFLAGS := $(LLVM_LDFLAGS) $(CLANG_LDFLAGS)
|
|
|
|
ifneq ($(HOST_OS_ARCH),WINNT)
|
|
HOST_LDFLAGS += -shared
|
|
endif
|
|
|
|
# Use the default OS X deployment target to enable using the libc++ headers
|
|
# correctly. Note that the binary produced here is a host tool and doesn't need
|
|
# to be distributed.
|
|
MACOSX_DEPLOYMENT_TARGET :=
|