2013-03-24 06:12:25 +04:00
|
|
|
# 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/.
|
|
|
|
|
2014-09-04 12:44:01 +04:00
|
|
|
include $(topsrcdir)/config/config.mk
|
2013-03-24 06:12:25 +04:00
|
|
|
|
2018-07-05 08:58:09 +03:00
|
|
|
HOST_LDFLAGS := $(LLVM_LDFLAGS) $(CLANG_LDFLAGS)
|
2014-12-09 16:51:15 +03:00
|
|
|
|
2019-01-25 19:09:13 +03:00
|
|
|
ifeq ($(HOST_OS_ARCH),WINNT)
|
|
|
|
# clang-plugin.dll needs to be deterministic for sccache hashes
|
|
|
|
HOST_LDFLAGS += -brepro
|
|
|
|
else
|
2018-07-05 08:58:09 +03:00
|
|
|
HOST_LDFLAGS += -shared
|
2015-09-20 20:02:30 +03:00
|
|
|
endif
|
|
|
|
|
2014-12-09 16:51:15 +03:00
|
|
|
# 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 :=
|