mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[AOTI] Use format_consts_to_cpp on Windows. (#158543)
`format_consts_to_asm` is not supported on Windows, force use `format_consts_to_cpp` on Windows. Pull Request resolved: https://github.com/pytorch/pytorch/pull/158543 Approved by: https://github.com/desertfire
This commit is contained in:
@ -1804,6 +1804,10 @@ class AotCodeCompiler:
|
||||
elif platform == "darwin":
|
||||
section_attr = "__DATA,__data"
|
||||
symbol_prefix = "_"
|
||||
elif platform == "win32":
|
||||
symbol_prefix = ""
|
||||
# ASM build is not supported on Windows, force use CPP build.
|
||||
use_asm_build = False
|
||||
else:
|
||||
raise RuntimeError(f"Unsupported platform: {platform}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user