diff options
| author | Josh Stone <jistone@redhat.com> | 2020-07-20 16:55:56 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2020-08-22 13:44:53 -0700 |
| commit | df4bafc360064cc6d0dea8dccf083313f5e37280 (patch) | |
| tree | 145ac5bf9e4a4c379381e618a874d76dd4e1f625 | |
| parent | 663d2f5cd3163f17eddb74ee1e028d542255f21a (diff) | |
| download | rust-df4bafc360064cc6d0dea8dccf083313f5e37280.tar.gz rust-df4bafc360064cc6d0dea8dccf083313f5e37280.zip | |
Don't make clang use gcc's include-fixed
This was breaking `#include_next <limits.h>`, such that we weren't getting definitions of `PATH_MAX` and `_POSIX_ARG_MAX`.
| -rwxr-xr-x | src/ci/docker/host-x86_64/dist-x86_64-linux/build-clang.sh | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/ci/docker/host-x86_64/dist-x86_64-linux/build-clang.sh b/src/ci/docker/host-x86_64/dist-x86_64-linux/build-clang.sh index 2c00a628a1d..0df30f96c22 100755 --- a/src/ci/docker/host-x86_64/dist-x86_64-linux/build-clang.sh +++ b/src/ci/docker/host-x86_64/dist-x86_64-linux/build-clang.sh @@ -18,16 +18,7 @@ cd clang-build # For whatever reason the default set of include paths for clang is different # than that of gcc. As a result we need to manually include our sysroot's # include path, /rustroot/include, to clang's default include path. -# -# Alsow there's this weird oddity with gcc where there's an 'include-fixed' -# directory that it generates. It turns out [1] that Centos 5's headers are so -# old that they're incompatible with modern C semantics. While gcc automatically -# fixes that clang doesn't account for this. Tell clang to manually include the -# fixed headers so we can successfully compile code later on. -# -# [1]: https://sourceware.org/ml/crossgcc/2008-11/msg00028.html INC="/rustroot/include" -INC="$INC:/rustroot/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/include-fixed" INC="$INC:/usr/include" hide_output \ |
