(arch)
| 114 | print("WARN: failed to patch ms\\uplink.c") |
| 115 | |
| 116 | def prep(arch): |
| 117 | makefile_template = "ms\\ntdll{}.mak" |
| 118 | generated_makefile = makefile_template.format('') |
| 119 | if arch == "x86": |
| 120 | configure = "VC-WIN32" |
| 121 | do_script = "ms\\do_nasm" |
| 122 | suffix = "32" |
| 123 | elif arch == "amd64": |
| 124 | configure = "VC-WIN64A" |
| 125 | do_script = "ms\\do_win64a" |
| 126 | suffix = "64" |
| 127 | else: |
| 128 | raise ValueError('Unrecognized platform: %s' % arch) |
| 129 | |
| 130 | print("Creating the makefiles...") |
| 131 | sys.stdout.flush() |
| 132 | # run configure, copy includes, patch files |
| 133 | run_configure(configure, do_script) |
| 134 | makefile = makefile_template.format(suffix) |
| 135 | try: |
| 136 | os.unlink(makefile) |
| 137 | except FileNotFoundError: |
| 138 | pass |
| 139 | os.rename(generated_makefile, makefile) |
| 140 | copy_includes(makefile, suffix) |
| 141 | |
| 142 | print('patching ms\\uplink.c...') |
| 143 | fix_uplink() |
| 144 | |
| 145 | def main(): |
| 146 | if len(sys.argv) == 1: |
no test coverage detected
searching dependent graphs…