config/static-checking-config.mk

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 4
michael@0 5 # The entire tree should be subject to static analysis using the XPCOM
michael@0 6 # script. Additional scripts may be added by specific subdirectories.
michael@0 7
michael@0 8 DEHYDRA_SCRIPT = $(topsrcdir)/config/static-checking.js
michael@0 9
michael@0 10 ifndef JS_STANDALONE
michael@0 11 DEHYDRA_MODULES = \
michael@0 12 $(topsrcdir)/xpcom/analysis/final.js \
michael@0 13 $(topsrcdir)/xpcom/analysis/must-override.js \
michael@0 14 $(NULL)
michael@0 15
michael@0 16 TREEHYDRA_MODULES = \
michael@0 17 $(topsrcdir)/xpcom/analysis/outparams.js \
michael@0 18 $(topsrcdir)/xpcom/analysis/stack.js \
michael@0 19 $(topsrcdir)/xpcom/analysis/flow.js \
michael@0 20 $(topsrcdir)/xpcom/analysis/static-init.js \
michael@0 21 $(topsrcdir)/layout/generic/frame-verify.js \
michael@0 22 $(NULL)
michael@0 23 endif
michael@0 24
michael@0 25 TREEHYDRA_MODULES += \
michael@0 26 $(topsrcdir)/js/src/jsstack.js \
michael@0 27 $(NULL)
michael@0 28
michael@0 29 DEHYDRA_ARG_PREFIX=-fplugin-arg-gcc_treehydra-
michael@0 30
michael@0 31 DEHYDRA_ARGS = \
michael@0 32 $(DEHYDRA_ARG_PREFIX)script=$(DEHYDRA_SCRIPT) \
michael@0 33 $(DEHYDRA_ARG_PREFIX)topsrcdir=$(topsrcdir) \
michael@0 34 $(DEHYDRA_ARG_PREFIX)objdir=$(DEPTH) \
michael@0 35 $(DEHYDRA_ARG_PREFIX)dehydra-modules=$(subst $(NULL) ,$(COMMA),$(strip $(DEHYDRA_MODULES))) \
michael@0 36 $(DEHYDRA_ARG_PREFIX)treehydra-modules=$(subst $(NULL) ,$(COMMA),$(strip $(TREEHYDRA_MODULES))) \
michael@0 37 $(NULL)
michael@0 38
michael@0 39 DEHYDRA_FLAGS = -fplugin=$(DEHYDRA_PATH) $(DEHYDRA_ARGS)
michael@0 40
michael@0 41 ifdef DEHYDRA_PATH
michael@0 42 OS_CXXFLAGS += $(DEHYDRA_FLAGS)
michael@0 43 endif
michael@0 44
michael@0 45 ifdef ENABLE_CLANG_PLUGIN
michael@0 46 CLANG_PLUGIN := $(DEPTH)/build/clang-plugin/$(DLL_PREFIX)clang-plugin$(DLL_SUFFIX)
michael@0 47 OS_CXXFLAGS += -Xclang -load -Xclang $(CLANG_PLUGIN) -Xclang -add-plugin -Xclang moz-check
michael@0 48 OS_CFLAGS += -Xclang -load -Xclang $(CLANG_PLUGIN) -Xclang -add-plugin -Xclang moz-check
michael@0 49 endif

mercurial