[PATCH] lld: handling of -flavor / -core command line switches
Rui Ueyama
ruiu at google.com
Thu Sep 18 14:51:54 PDT 2014
I see your need. My concern of possible conflict of "-flavor" option with the existing linker is hypothetical, so I think I'm OK to allow -flavor to appear in any place in the command line.
However the current evaluation order doesn't seem correct. I think it make a decision on the flavor in this order.
1. If argv[0] is "ld", the default linker driver is chosen
2. If argv[0] can be interpreted as a triple, the triple is chosen
3. otherwise, look for -flavor (and probably argv[0] is "lld" in this case)
Currently 3 takes precedence over 2, which I feel wrong.
http://reviews.llvm.org/D5384
More information about the llvm-commits
mailing list