mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
geckolib: Quote paths and remove things after the first non-preceding whitespace
This should allow `regen_style_structs.sh` to run on mac, where a path like: /.../Frameworks (framework dir) was reported.
This commit is contained in:
parent
a6ffabb2ad
commit
18b1cc68db
1 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,8 @@ CLANG_SEARCH_DIRS=$(clang++ -E -x c++ - -v < /dev/null 2>&1 | awk '{ \
|
||||||
in_headers = 0; \
|
in_headers = 0; \
|
||||||
else if (in_headers == 1) { \
|
else if (in_headers == 1) { \
|
||||||
gsub(/^[ \t]+/, "", $0); \
|
gsub(/^[ \t]+/, "", $0); \
|
||||||
printf " -isystem %s", $0; \
|
gsub(/[ \t].+$/, "", $0); \
|
||||||
|
printf " -isystem \"%s\"", $0; \
|
||||||
}
|
}
|
||||||
}' | sed -e s/:$//g)
|
}' | sed -e s/:$//g)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue