[Linux] Fix binutils path for gentests

This commit is contained in:
uytvbn 2017-10-24 22:00:39 +02:00 committed by Sandy Carter
parent a422166123
commit 8e92a4b55b
1 changed files with 4 additions and 1 deletions

View File

@ -938,7 +938,10 @@ class GenTestsCommand(Command):
print('Generating test binaries...') print('Generating test binaries...')
print('') print('')
if sys.platform == 'win32':
binutils_path = os.path.join('third_party', 'binutils-ppc-cygwin') binutils_path = os.path.join('third_party', 'binutils-ppc-cygwin')
else:
binutils_path = os.path.join('third_party', 'binutils', 'bin')
ppc_as = os.path.join(binutils_path, 'powerpc-none-elf-as') ppc_as = os.path.join(binutils_path, 'powerpc-none-elf-as')
ppc_ld = os.path.join(binutils_path, 'powerpc-none-elf-ld') ppc_ld = os.path.join(binutils_path, 'powerpc-none-elf-ld')
ppc_objdump = os.path.join(binutils_path, 'powerpc-none-elf-objdump') ppc_objdump = os.path.join(binutils_path, 'powerpc-none-elf-objdump')