• Ian Lance Taylor's avatar
    cmd/link: fix handling of cgo_dynamic_interpreter · 93b753f5
    Ian Lance Taylor authored
    CL 27473 accidentally changed `!Debug['I']` to `*flagInterpreter != ""`.
    Since the old `Debug['I']` was set when the new *flagInterpreter was
    set, this inverted the sense of the condition. The effect was to always
    ignore the cgo_dynamic_interpreter setting from runtime/cgo. This worked
    OK when the default interpreter was the correct one, but failed when it
    was not, as is currently the case on, at least, PPC64 and ARM.
    
    This CL restores the old behavior by using a separate variable to track
    whether the -I flag was used, just as we used to.
    
    Change-Id: Icf9b65fa41349ed2e4de477fec0a557ef1eb8189
    Reviewed-on: https://go-review.googlesource.com/27562
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    93b753f5
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...