Adventures in getting the compilescript to work.

For some reason, git is now the only way for me to update the files.
Annoying, but okay.
This commit is contained in:
Curle 2019-07-26 16:17:28 +01:00
parent 3b3e94a644
commit a07c29adf4

View File

@ -6,7 +6,7 @@ print(CurrentPath)
# Here goes the absolute path to your x86_64-mingw-w64 folder.
# There should be a \bin\gcc.exe relative to that folder.
GCC_FOLDER = "C:\\Users\Gem\Desktop\comp\mingw64"
GCC_FOLDER = "C:\\Users\ruby\Desktop\comp\mingw64"
if os.path.exists('objects.list'):
os.remove("objects.list")
@ -20,7 +20,7 @@ with open('c_files.txt') as file:
line = file.readline().strip()
while line:
line = line[:-2]
print(f'{HeaderFiles}')
print(HeaderFiles)
if line == "gnu-efi/lib/x86_64/setjmp" or line == "gnu-efi/lib/x86_64/efi_stub":
print(f'Assembling file {line}.s')
@ -33,7 +33,7 @@ with open('c_files.txt') as file:
os.path.normpath(OBJECTS)
with open('objects.list', 'a') as objectsfile:
with open('objects.list', 'w') as objectsfile:
ofile = OBJECTS.replace('\\', '/')
objectsfile.write(ofile + "\n")
line = file.readline().strip()