summaryrefslogtreecommitdiff
path: root/scripts/build/cc/gcc.sh
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2019-02-20 08:46:29 (GMT)
committerGitHub <noreply@github.com>2019-02-20 08:46:29 (GMT)
commit9627a041d25e56de06c4eab0ac4af72975b08113 (patch)
tree03298bac0fd9ddd09ba38ea385f4ad8f709ed490 /scripts/build/cc/gcc.sh
parent7d621cd831e4fb015fa151437051192135337006 (diff)
parent8088c6ef4733d0b9fff9cd538c7f2c745434f149 (diff)
Merge pull request #1143 from stilor/rc2-fixes-2
RC2 fixes, part 2
Diffstat (limited to 'scripts/build/cc/gcc.sh')
-rw-r--r--scripts/build/cc/gcc.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index 9ba5982..ce7fea4 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -542,9 +542,10 @@ do_gcc_core_backend() {
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
- # We may need to modify host/build CFLAGS separately below
+ # We may need to modify host/build/target CFLAGS separately below. Note
+ # that ${cflags} may refer either to build or host CFLAGS; they are provided
+ # by the caller.
cflags_for_build="${CT_CFLAGS_FOR_BUILD}"
- cflags="${CT_CFLAGS_FOR_HOST}"
cflags_for_target="${CT_TARGET_CFLAGS}"
# Clang's default bracket-depth is 256, and building GCC