Source code

Revision control

Other Tools

1
# This Source Code Form is subject to the terms of the Mozilla Public
2
# License, v. 2.0. If a copy of the MPL was not distributed with this
3
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5
# The entire tree should be subject to static analysis using the XPCOM
6
# script. Additional scripts may be added by specific subdirectories.
7
8
ifdef ENABLE_CLANG_PLUGIN
9
# Replace "clang-cl.exe" to "clang.exe --driver-mode=cl" to avoid loading the
10
# module clang.exe again when load the plugin dll, which links to the import
11
# library of clang.exe.
12
ifeq ($(OS_ARCH),WINNT)
13
CC := $(subst clang-cl.exe,clang.exe --driver-mode=cl,$(CC:.EXE=.exe))
14
CXX := $(subst clang-cl.exe,clang.exe --driver-mode=cl,$(CXX:.EXE=.exe))
15
endif
16
endif