Skip to content

Commit 36c0731

Browse files
committed
Fix GCCBootstrapMacOS
We can't do a bootstrapped build because it's canadian cross.
1 parent ac657ec commit 36c0731

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

bootstrap/GCC/gcc_common.jl

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,6 @@ done
148148
# Initialize GCC_CONF_ARGS
149149
GCC_CONF_ARGS=()
150150
151-
## If we're doing a bootstrapping build (GCC does not, GCCBootstrapMacOS does)
152-
# add in the appropriate configure arguments:
153-
if [[ "${GCC_ENABLE_BOOTSTRAP:-false}" == "true" ]]; then
154-
GCC_CONF_ARGS+=( --enable-bootstrap )
155-
else
156-
GCC_CONF_ARGS+=( --disable-bootstrap )
157-
fi
158-
159151
## Architecture-dependent arguments
160152
# Choose a default arch, and on arm*hf targets, pass `--with-float=hard` explicitly
161153
if [[ "${target}" == arm*hf ]]; then
@@ -243,10 +235,10 @@ for TOOL in CC CPP CXX AS AR NM LD RANLIB; do
243235
export ${TOOL}_FOR_TARGET=${!TARGET_NAME}
244236
245237
# These target tool autodetections do not work
246-
#export ac_cv_path_${TOOL}_FOR_TARGET=${!TARGET_NAME}
238+
export ac_cv_path_${TOOL}_FOR_TARGET=${!TARGET_NAME}
247239
done
248240
249-
# libcc1 fails with an error about `-rdynamic` unless we defien this
241+
# libcc1 fails with an error about `-rdynamic` unless we define this
250242
export gcc_cv_nm="${NM_FOR_TARGET}"
251243
252244
# Make sure the tools that GCC itself wants to use ("ld", "as", "dysmutil") are available
@@ -269,6 +261,7 @@ $WORKSPACE/srcdir/gcc-*/configure \
269261
--host="${host}" \
270262
--target="${target}" \
271263
--disable-multilib \
264+
--disable-bootstrap \
272265
--disable-werror \
273266
--enable-threads=posix \
274267
--enable-languages=c,c++ \

bootstrap/GCCBootstrapMacOS/build_tarballs.jl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,7 @@ for version in (v"14.2.0",)
1010
gcc_version_sources[version]...,
1111
DirectorySource("./patches-v$(version)"; follow_symlinks=true, target="patches"),
1212
],
13-
script = string(
14-
"""
15-
# By setting `GCC_ENABLE_BOOTSTRAP=true`, we opt-in to
16-
# a bootstrapped GCC build and disable trying to use the target CToolchain
17-
GCC_ENABLE_BOOTSTRAP=true
18-
""",
19-
script,
20-
),
13+
script,
2114
platforms = [
2215
CrossPlatform(Platform(arch(HostPlatform()), "linux") => Platform("aarch64", "macos")),
2316
CrossPlatform(Platform(arch(HostPlatform()), "linux") => Platform("x86_64", "macos")),

0 commit comments

Comments
 (0)