diff options
author | Max <mparisi@stevens.edu> | 2020-12-19 12:39:50 -0500 |
---|---|---|
committer | Max <mparisi@stevens.edu> | 2020-12-19 12:39:50 -0500 |
commit | 4f3e87d037cfc6efcafc605e309edc71179cbb7a (patch) | |
tree | 5036da5a71c08c37e2c9d674a06f6699e69d8e2f /tools/pragma | |
parent | 128935015a3fd7f53404315c268c3d2424af4dc7 (diff) |
argument parsing issue in pragma.py when compiler is invoked through wine
Diffstat (limited to 'tools/pragma')
-rw-r--r-- | tools/pragma/pragma.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/pragma/pragma.py b/tools/pragma/pragma.py index f721c65..8550a9f 100644 --- a/tools/pragma/pragma.py +++ b/tools/pragma/pragma.py @@ -246,7 +246,8 @@ with open(args.source, "r") as src: if not (start >= start_file and end > start): raise ValueError("Invalid start, end, or start_file arguments (end must be > start, and start >= start_file)") regswap_tasks.append(RegswapTask(start-start_file, end-start_file, regA, regB)) - subprocess.run([args.cc, *args.cflags.split(' '), "-o", args.output, args.source]) + print(*args.cc.split(' ')) + subprocess.run([*args.cc.split(' '), *args.cflags.split(' '), "-o", args.output, args.source]) instrs = [] TEXT_INDEX = 1 # NOTE: assumes that mwcceppc always places the .text section header at index 1 |