Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions script/install-gcc-src/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ def preprocess(i):
else:
env['MLC_GCC_TARGET_STRING'] = ''

if env.get('MLC_GCC_HOST', '') != '':
env['MLC_GCC_HOST_STRING'] = f""" --target={env['MLC_GCC_HOST']} """
else:
env['MLC_GCC_HOST_STRING'] = ''

env['MLC_GCC_INSTALLED_PATH'] = os.path.join(os.getcwd(), 'install', 'bin')

return {'return': 0}
Expand Down
1 change: 1 addition & 0 deletions script/install-gcc-src/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ deps:
- MLC_GIT_CHECKOUT_TAG
input_mapping:
targets: MLC_GCC_TARGET
host: MLC_GCC_HOST

env:
MLC_GIT_URL: git://gcc.gnu.org/git/gcc.git
Expand Down
2 changes: 1 addition & 1 deletion script/install-gcc-src/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cd src
cd ../build


cmd="../src/configure --prefix="${INSTALL_DIR}" ${MLC_GCC_TARGET_STRING} --with-gcc-major-version-only --disable-multilib"
cmd="../src/configure --prefix="${INSTALL_DIR}" ${MLC_GCC_TARGET_STRING} ${MLC_GCC_HOST_STRING} --with-gcc-major-version-only --disable-multilib"
echo $cmd
eval $cmd

Expand Down
Loading