This is an archive of the discontinued LLVM Phabricator instance.

gn build: Fix `lld-link: unknown flag: -fuse-ld=lld` warnings on Windows
ClosedPublic

Authored by thakis on Jan 28 2019, 10:58 AM.

Details

Reviewers
pcc
ruiu
Summary

Fixes a minor regression from r351248.

Diff Detail

Event Timeline

thakis created this revision.Jan 28 2019, 10:58 AM
ruiu accepted this revision.Jan 28 2019, 11:00 AM
ruiu added a subscriber: ruiu.

LGTM

This revision is now accepted and ready to land.Jan 28 2019, 11:00 AM
pcc accepted this revision.Jan 28 2019, 11:03 AM

LGTM

(Hmm, where's lld-link coming from? Ah, http://llvm-cs.pcc.me.uk/utils/gn/build/toolchain/BUILD.gn#200 . Maybe that should be using use_lld?)

In D57342#1374050, @pcc wrote:

LGTM

(Hmm, where's lld-link coming from? Ah, http://llvm-cs.pcc.me.uk/utils/gn/build/toolchain/BUILD.gn#200 . Maybe that should be using use_lld?)

You mean like

if (clang_base_path != "") {
  cl = "$clang_base_path/bin/clang-cl"
  if (use_lld) {
    link = "$clang_base_path/bin/lld-link"
  }
}

?

pcc added a comment.Jan 28 2019, 11:28 AM
In D57342#1374050, @pcc wrote:

LGTM

(Hmm, where's lld-link coming from? Ah, http://llvm-cs.pcc.me.uk/utils/gn/build/toolchain/BUILD.gn#200 . Maybe that should be using use_lld?)

You mean like

if (clang_base_path != "") {
  cl = "$clang_base_path/bin/clang-cl"
  if (use_lld) {
    link = "$clang_base_path/bin/lld-link"
  }
}

?

Yes.

Makes sense, will land with that.

Thanks!

thakis closed this revision.Jan 28 2019, 11:33 AM

Landed in r352415, but forgot to put in the "Differential Revision:" line.