diff options
author | Alexey Neyman <stilor@att.net> | 2018-11-03 15:38:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-03 15:38:51 -0700 |
commit | 2808fdb6a3e0d197331d77aef0e70320507addef (patch) | |
tree | 3f331acd523535ca2c4dc4fcb538c0845d570955 /scripts/build/cc | |
parent | be1ae32a984b6223b3ab66aa1bdd9c63b36e3849 (diff) | |
parent | 1dea24ce9ae6079ee1fa5cbc2ca8b8176b162568 (diff) | |
download | crosstool-ng-2808fdb6a3e0d197331d77aef0e70320507addef.tar.gz crosstool-ng-2808fdb6a3e0d197331d77aef0e70320507addef.tar.bz2 crosstool-ng-2808fdb6a3e0d197331d77aef0e70320507addef.zip |
Merge pull request #985 from antmak/platform_headers
Use the platform headers in the pass-2 and canadian gcc stages
Diffstat (limited to 'scripts/build/cc')
-rw-r--r-- | scripts/build/cc/gcc.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 7a745745..7aceee35 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -350,12 +350,11 @@ do_gcc_core_backend() { ;; esac - # This is only needed when building libstdc++ in a canadian environment with - # this function being used for final step (i.e., when building for bare metal). - if [ "${build_step}" = "gcc_build" ]; then - CT_DoLog DEBUG "Copying headers to install area of core C compiler" - CT_DoExecLog ALL cp -a "${CT_HEADERS_DIR}" "${prefix}/${CT_TARGET}/include" - fi + case "${build_step}" in + core2|gcc_build) + CT_DoLog DEBUG "Copying headers to install area of core C compiler" + CT_DoExecLog ALL cp -a "${CT_HEADERS_DIR}" "${prefix}/${CT_TARGET}/include" + esac for tmp in ARCH ABI CPU TUNE FPU FLOAT ENDIAN; do eval tmp="\${CT_ARCH_WITH_${tmp}}" |