Repository navigation
Commit dab5e65
gh-153285: Preserve LTO target names on macOS (GH-153532)
With `--with-lto` on macOS, linker flags include Make's `$@` target variable.
Immediate expansion in `PY_CORE_EXE_LDFLAGS` erased the target name,
causing executable links to share an LTO object path. Parallel links
could then produce incorrect executables and cause `test_embed` failures.
Use recursive assignment (`=` instead of `:=`) so `$@` expands when each
link recipe runs.
(cherry picked from commit a497a11)
Co-authored-by: Vismay <vismay.t@gmail.com>
1 parent 055e6b2 commit dab5e65
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments