trunk/933b351ff11fbce371597a984b0740606597bfdf: [AOTI] Fix consts cpp build on macOS (#201698)
- PyTorch 近 90 天出现 2669 次
- PyTorch 近 90 天第 2627 次发版
- 上一次:同一天稍早 · trunk/192c546ac13da09d009b31ef0468ec64275863e6: [CI] Introduce macOS 27 for binary builds and MPS tests (#196384)
发生了什么
With aot_inductor.use_consts_asm_build=False , an AOTI model on macOS fails to load with: dlopen(...wrapper.so): symbol not found in flat namespace '__binary_constants_bin_start' symbol_prefix is "_" on darwin because hand-written assembly has to spell out the leading underscore that Mach-O adds to C symbols. format_consts_to_cpp also used it, but it emits a C++ variable definition, so the compiler added a second un…
摘要按规则整理自下方来源原文