Skip to content

Commit

Permalink
Strip compiler arguments starting with '-isystem'
Browse files Browse the repository at this point in the history
The chromium build system (using clang) apparently concatenates
'-isystem' with path (i.e. uses it without space). Support stripping
this version as well to avoid the lot of warnings:

    x86_64-pc-linux-gnu-clang++-6.0: warning: argument unused during compilation: '-isystem /usr/include/nss' [-Wunused-command-line-argument]
  • Loading branch information
mgorny authored and shawnl committed Mar 31, 2018
1 parent 951df6d commit a122536
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/strip.c
Expand Up @@ -107,7 +107,8 @@ int dcc_strip_local_args(char **from, char ***out_argv)
|| str_startswith("-L", from[from_i])
|| str_startswith("-MF", from[from_i])
|| str_startswith("-MT", from[from_i])
|| str_startswith("-MQ", from[from_i])) {
|| str_startswith("-MQ", from[from_i])
|| str_startswith("-isystem", from[from_i])) {
/* Something like "-DNDEBUG" or
* "-Wp,-MD,.deps/nsinstall.pp". Just skip this word */
;
Expand Down

0 comments on commit a122536

Please sign in to comment.