diff options
author | Chris Johns <chrisj@rtems.org> | 2016-04-13 09:13:55 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-04-15 15:22:36 +1000 |
commit | 6843e47ce33961e5a705285f3af7a78cae0c2891 (patch) | |
tree | 680dcfaf1b74933e71db98783efa0ff8c7123116 /source-builder/sb/windows.py | |
parent | graphics: Add 3rd party graphics support back to the master branch. (diff) | |
download | rtems-source-builder-6843e47ce33961e5a705285f3af7a78cae0c2891.tar.bz2 |
gdb: Build with system readline and use MinGW compilers.
Select MinGW compilers for Windows builds on Windows.
Use the system readline rather than GDB's which does not
handle cmd.exe correctly.
Diffstat (limited to 'source-builder/sb/windows.py')
-rw-r--r-- | source-builder/sb/windows.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source-builder/sb/windows.py b/source-builder/sb/windows.py index 53a47ac..f4eb85c 100644 --- a/source-builder/sb/windows.py +++ b/source-builder/sb/windows.py @@ -45,6 +45,10 @@ def load(): uname = 'mingw32' machine = 'w%s' % (machsize) + # Set the C/C++ compilers we want to use. + cc = '%s-%s-%s-gcc' % (hosttype, machine, uname) + cxx = '%s-%s-%s-g++' % (hosttype, machine, uname) + # See if this is actually MSYS2/Cygwin Python if os.name == 'posix': _uname = os.uname() @@ -54,6 +58,8 @@ def load(): hosttype = _uname[4] uname = 'cygwin' machine = 'pc' + cc = 'gcc' + cxx = 'g++' else: raise error.general('invalid POSIX python for Windows') @@ -91,13 +97,13 @@ def load(): '__bzip2': ('exe', 'required', 'bzip2'), '__bison': ('exe', 'required', 'bison'), '__cat': ('exe', 'required', 'cat'), - '__cc': ('exe', 'required', 'gcc'), + '__cc': ('exe', 'required', cc), '__chgrp': ('exe', 'required', 'chgrp'), '__chmod': ('exe', 'required', 'chmod'), '__chown': ('exe', 'required', 'chown'), '__cp': ('exe', 'required', 'cp'), '__cvs': ('exe', 'optional', 'cvs'), - '__cxx': ('exe', 'required', 'g++'), + '__cxx': ('exe', 'required', cxx), '__flex': ('exe', 'required', 'flex'), '__git': ('exe', 'required', 'git'), '__grep': ('exe', 'required', 'grep'), |