mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Fix support for Windows (MinGW) native builds using MSYS.
Fix paths that need to be coverted to host format. The shell expansion needs to invoke a shell on Windows as cmd.exe will not work. Munch the paths into smaller sizes for Windows due to the limited path size.
This commit is contained in:
@@ -37,6 +37,11 @@ import sys
|
||||
|
||||
basepath = 'sb'
|
||||
|
||||
#
|
||||
# Save the host state.
|
||||
#
|
||||
host_windows = False
|
||||
|
||||
class command_line:
|
||||
"""Process the command line in a common way for all Tool Builder commands."""
|
||||
|
||||
@@ -460,6 +465,8 @@ def load(args, optargs = None, defaults = '%{_sbdir}/defaults.mc'):
|
||||
command line.
|
||||
"""
|
||||
|
||||
global host_windows
|
||||
|
||||
#
|
||||
# The path to this command.
|
||||
#
|
||||
@@ -482,6 +489,7 @@ def load(args, optargs = None, defaults = '%{_sbdir}/defaults.mc'):
|
||||
try:
|
||||
import windows
|
||||
overrides = windows.load()
|
||||
host_windows = True
|
||||
except:
|
||||
raise error.general('failed to load Windows host support')
|
||||
elif os.name == 'posix':
|
||||
|
Reference in New Issue
Block a user