Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Dietrich
clang-hash
Commits
9e3dbba2
Commit
9e3dbba2
authored
Feb 04, 2017
by
Christian Dietrich
Browse files
plugin: ignore -I command line arguments
parent
e95fab7e
Pipeline
#3098
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
experiments/lib.py
View file @
9e3dbba2
...
...
@@ -32,7 +32,7 @@ class ClangHashHelper:
os
.
mkdir
(
cache_dir
)
os
.
environ
[
"CCACHE_DIR"
]
=
cache_dir
if
"clang-hash"
in
self
.
mode
.
value
:
cache_dir
=
os
.
path
.
join
(
self
.
tmp_directory
.
path
,
"clang-hash"
)
cache_dir
=
os
.
path
.
join
(
self
.
tmp_directory
.
path
,
"clang-hash
-cache
"
)
os
.
mkdir
(
cache_dir
)
os
.
environ
[
"CLANG_HASH_CACHE"
]
=
cache_dir
...
...
src/clang-hash.cc
View file @
9e3dbba2
...
...
@@ -280,6 +280,14 @@ private:
if
(
Arg
.
find
(
"-stop-if-same-hash"
)
!=
std
::
string
::
npos
)
{
continue
;
// also don't hash this (plugin argument)
}
if
(
Arg
==
"-I"
)
{
// throw away next parameter (include path)
getline
(
CommandLine
,
Arg
,
'\0'
);
continue
;
}
if
(
Arg
.
substr
(
0
,
2
)
==
"-I"
)
{
continue
;
// also don't hash include paths
}
if
(
Arg
.
find
(
"-hash-verbose"
)
!=
std
::
string
::
npos
)
{
continue
;
// also don't hash this (plugin argument)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment