Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
michael@0 | 1 | #!/bin/sh |
michael@0 | 2 | |
michael@0 | 3 | # Default srcdir to this directory |
michael@0 | 4 | srcdir= |
michael@0 | 5 | |
michael@0 | 6 | for option; do |
michael@0 | 7 | case "$option" in |
michael@0 | 8 | -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
michael@0 | 9 | *) optarg= ;; |
michael@0 | 10 | esac |
michael@0 | 11 | |
michael@0 | 12 | case "$option" in |
michael@0 | 13 | --srcdir=*) srcdir="$optarg";; |
michael@0 | 14 | esac |
michael@0 | 15 | done |
michael@0 | 16 | |
michael@0 | 17 | if test -z "$CXX"; then |
michael@0 | 18 | CXX=`which clang++` |
michael@0 | 19 | fi |
michael@0 | 20 | |
michael@0 | 21 | echo -n "checking for llvm-config... " |
michael@0 | 22 | |
michael@0 | 23 | if test -z "$LLVMCONFIG"; then |
michael@0 | 24 | LLVMCONFIG=`which llvm-config` |
michael@0 | 25 | fi |
michael@0 | 26 | |
michael@0 | 27 | if test -z "$LLVMCONFIG"; then |
michael@0 | 28 | LLVMCONFIG=`dirname $CXX`/llvm-config |
michael@0 | 29 | fi |
michael@0 | 30 | |
michael@0 | 31 | if test ! -x "$LLVMCONFIG"; then |
michael@0 | 32 | echo "configure: error: Cannot find an llvm-config binary for building a clang plugin" 1>&2 |
michael@0 | 33 | exit 1 |
michael@0 | 34 | fi |
michael@0 | 35 | |
michael@0 | 36 | echo "$LLVMCONFIG" |
michael@0 | 37 | |
michael@0 | 38 | LLVMCXXFLAGS=`$LLVMCONFIG --cxxflags` |
michael@0 | 39 | LLVMLDFLAGS=`$LLVMCONFIG --ldflags` |
michael@0 | 40 | CXXFLAGS="$CXXFLAGS $LLVMCXXFLAGS -fno-rtti -fno-exceptions" |
michael@0 | 41 | LDFLAGS="$LDFLAGS $LLVMLDFLAGS" |
michael@0 | 42 | |
michael@0 | 43 | cat $srcdir/Makefile.in | sed \ |
michael@0 | 44 | -e "s%@CXX@%$CXX%" \ |
michael@0 | 45 | -e "s%@CXXFLAGS@%$CXXFLAGS%" \ |
michael@0 | 46 | -e "s%@LDFLAGS@%$LDFLAGS%" \ |
michael@0 | 47 | -e "s%@srcdir@%$srcdir%" \ |
michael@0 | 48 | > Makefile |