diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2019-12-11 11:51:08 -0800 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2019-12-16 15:26:29 -0500 |
commit | 80455713d6f37d22c35f8a04dc75bd4495789691 (patch) | |
tree | dc94f143f8588580c638d87e78bff0a31f404ecf /tests | |
parent | 84c66942372057f593808e19df5fb5876a9bacdc (diff) |
tests: Fix for aberrant output on macOS clang
On macOS, clang will unhelpfully print "(framework directory)" after
some of its include paths. Filter this out, so that we don't
accidentally stick it in the tartan command line.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/wrapper-compiler-errors | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/wrapper-compiler-errors b/tests/wrapper-compiler-errors index 8a8aa20..a9c5024 100755 --- a/tests/wrapper-compiler-errors +++ b/tests/wrapper-compiler-errors @@ -36,7 +36,8 @@ test_status=0 # Before starting, work out the compiler’s system include paths. # Thanks to: http://stackoverflow.com/a/17940271/2931197 system_includes=`echo | cpp -Wp,-v 2>&1 | grep '^[[:space:]]' | \ - sed -e 's/^[[:space:]]*/-isystem/' | tr "\n" ' '` + sed -e 's/^[[:space:]]*/-isystem/' -e 's/ (framework directory)//' | \ + tr "\n" ' '` # Extract the template name. template_name=`head -n 1 "${input_filename}" | \ |