diff options
author | Anton Maklakov <anton@espressif.com> | 2018-06-07 14:01:41 +0800 |
---|---|---|
committer | Anton Maklakov <anton@espressif.com> | 2018-06-12 17:07:06 +0800 |
commit | 1dea24ce9ae6079ee1fa5cbc2ca8b8176b162568 (patch) | |
tree | 390cfe529445956b4c2d5df86949ede480c45e5c /scripts | |
parent | 90d14443d1ab1d650f7aef98df3d2948ba6dd605 (diff) | |
download | crosstool-ng-1dea24ce9ae6079ee1fa5cbc2ca8b8176b162568.tar.gz crosstool-ng-1dea24ce9ae6079ee1fa5cbc2ca8b8176b162568.tar.bz2 crosstool-ng-1dea24ce9ae6079ee1fa5cbc2ca8b8176b162568.zip |
Use the platform headers in the pass-2 and canadian gcc stages
Diffstat (limited to 'scripts')
-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 a6bf1ac5..c95c5b98 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}}" |