static-checking-config.mk (1158B)
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 # Likewise with "clang++.exe", replacing it with "clang.exe --driver-mode=g++", 13 # when building .wasm files from source (we do need to keep clang++ when 14 # building $(WASM_ARCHIVE)). Note we'd normally use $(CPPWASMOBJS), but it's 15 # not defined yet when this file is included. 16 ifeq ($(OS_ARCH),WINNT) 17 CC := $(subst clang-cl.exe,clang.exe --driver-mode=cl,$(CC:.EXE=.exe)) 18 CXX := $(subst clang-cl.exe,clang.exe --driver-mode=cl,$(CXX:.EXE=.exe)) 19 $(notdir $(addsuffix .$(WASM_OBJ_SUFFIX),$(basename $(WASM_CPPSRCS)))): WASM_CXX := $(subst clang++.exe,clang.exe --driver-mode=g++,$(WASM_CXX:.EXE=.exe)) 20 endif 21 endif