mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
9dfe3dbc7b
Before making top-level traverse js/src moz.build files, there was a need to distinguish between top-level traversing e.g. top-level moz.build or config/moz.build and js/src traversing them. With a single traversal of both moz.build sets, we now only need to distinguish between js standalone builds and gecko builds. There is still, however, a need to distinguish between top-level vs. js/src configure runs on gecko builds to make them subconfigure icu and libffi from top-level instead of js/src in js standalone builds, or when choosing to make js/src's config.status do something when run or not.
50 lines
1.7 KiB
Makefile
50 lines
1.7 KiB
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/.
|
|
|
|
# The entire tree should be subject to static analysis using the XPCOM
|
|
# script. Additional scripts may be added by specific subdirectories.
|
|
|
|
DEHYDRA_SCRIPT = $(topsrcdir)/config/static-checking.js
|
|
|
|
ifndef JS_STANDALONE
|
|
DEHYDRA_MODULES = \
|
|
$(topsrcdir)/xpcom/analysis/final.js \
|
|
$(topsrcdir)/xpcom/analysis/must-override.js \
|
|
$(NULL)
|
|
|
|
TREEHYDRA_MODULES = \
|
|
$(topsrcdir)/xpcom/analysis/outparams.js \
|
|
$(topsrcdir)/xpcom/analysis/stack.js \
|
|
$(topsrcdir)/xpcom/analysis/flow.js \
|
|
$(topsrcdir)/xpcom/analysis/static-init.js \
|
|
$(topsrcdir)/layout/generic/frame-verify.js \
|
|
$(NULL)
|
|
endif
|
|
|
|
TREEHYDRA_MODULES += \
|
|
$(topsrcdir)/js/src/jsstack.js \
|
|
$(NULL)
|
|
|
|
DEHYDRA_ARG_PREFIX=-fplugin-arg-gcc_treehydra-
|
|
|
|
DEHYDRA_ARGS = \
|
|
$(DEHYDRA_ARG_PREFIX)script=$(DEHYDRA_SCRIPT) \
|
|
$(DEHYDRA_ARG_PREFIX)topsrcdir=$(topsrcdir) \
|
|
$(DEHYDRA_ARG_PREFIX)objdir=$(DEPTH) \
|
|
$(DEHYDRA_ARG_PREFIX)dehydra-modules=$(subst $(NULL) ,$(COMMA),$(strip $(DEHYDRA_MODULES))) \
|
|
$(DEHYDRA_ARG_PREFIX)treehydra-modules=$(subst $(NULL) ,$(COMMA),$(strip $(TREEHYDRA_MODULES))) \
|
|
$(NULL)
|
|
|
|
DEHYDRA_FLAGS = -fplugin=$(DEHYDRA_PATH) $(DEHYDRA_ARGS)
|
|
|
|
ifdef DEHYDRA_PATH
|
|
OS_CXXFLAGS += $(DEHYDRA_FLAGS)
|
|
endif
|
|
|
|
ifdef ENABLE_CLANG_PLUGIN
|
|
CLANG_PLUGIN := $(DEPTH)/build/clang-plugin/$(DLL_PREFIX)clang-plugin$(DLL_SUFFIX)
|
|
OS_CXXFLAGS += -Xclang -load -Xclang $(CLANG_PLUGIN) -Xclang -add-plugin -Xclang moz-check
|
|
OS_CFLAGS += -Xclang -load -Xclang $(CLANG_PLUGIN) -Xclang -add-plugin -Xclang moz-check
|
|
endif
|