trunk/933b351ff11fbce371597a984b0740606597bfdf: [AOTI] Fix consts cpp build on macOS (#201698)
- PyTorch: 2668 events in the last 90 days
- PyTorch: 2627th Release in the last 90 days
- Previous: earlier the same day · trunk/192c546ac13da09d009b31ef0468ec64275863e6: [CI] Introduce macOS 27 for binary builds and MPS tests (#196384)
What happened
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…
Summary assembled by rule from the sources below