Fix CCACHE_STRIPC being set when using swig as the compiler.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11031 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
79f7900968
commit
ecd75a5c48
2 changed files with 19 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ static void to_cache(ARGS *args)
|
||||||
x_asprintf(&tmp_stderr, "%s/tmp.stderr.%s", temp_dir, tmp_string());
|
x_asprintf(&tmp_stderr, "%s/tmp.stderr.%s", temp_dir, tmp_string());
|
||||||
x_asprintf(&tmp_outfiles, "%s/tmp.outfiles.%s", temp_dir, tmp_string());
|
x_asprintf(&tmp_outfiles, "%s/tmp.outfiles.%s", temp_dir, tmp_string());
|
||||||
|
|
||||||
if (strip_c_option) {
|
if (strip_c_option && !swig) {
|
||||||
args_add(stripped_args, "-c");
|
args_add(stripped_args, "-c");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -242,6 +242,15 @@ basetests() {
|
||||||
checkstat 'cache hit' 10
|
checkstat 'cache hit' 10
|
||||||
checkstat 'cache miss' 38
|
checkstat 'cache miss' 38
|
||||||
|
|
||||||
|
testname="stripc" # This test might not be portable
|
||||||
|
CCACHE_STRIPC=1 $CCACHE_COMPILE -c test1.c
|
||||||
|
checkstat 'cache hit' 10
|
||||||
|
checkstat 'cache miss' 39
|
||||||
|
|
||||||
|
CCACHE_STRIPC=1 $CCACHE_COMPILE -c test1.c
|
||||||
|
checkstat 'cache hit' 11
|
||||||
|
checkstat 'cache miss' 39
|
||||||
|
|
||||||
# removed these tests as some compilers (including newer versions of gcc)
|
# removed these tests as some compilers (including newer versions of gcc)
|
||||||
# determine which language to use based on .ii/.i extension, and C++ may
|
# determine which language to use based on .ii/.i extension, and C++ may
|
||||||
# not be installed
|
# not be installed
|
||||||
|
|
@ -375,6 +384,15 @@ swigtests() {
|
||||||
checkstat 'cache hit' 6
|
checkstat 'cache hit' 6
|
||||||
checkstat 'cache miss' 6
|
checkstat 'cache miss' 6
|
||||||
|
|
||||||
|
testname="stripc"
|
||||||
|
CCACHE_STRIPC=1 $CCACHE_COMPILE -java -O -O testswig1.i
|
||||||
|
checkstat 'cache hit' 7
|
||||||
|
checkstat 'cache miss' 6
|
||||||
|
|
||||||
|
CCACHE_STRIPC=1 $CCACHE_COMPILE -java -O -O -O testswig1.i
|
||||||
|
checkstat 'cache hit' 7
|
||||||
|
checkstat 'cache miss' 7
|
||||||
|
|
||||||
rm -f testswig1-preproc.i
|
rm -f testswig1-preproc.i
|
||||||
rm -f testswig1.i
|
rm -f testswig1.i
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue