public class Linkers extends Object
Modifier and Type | Method and Description |
---|---|
static Iterable<String> |
iXlinker(Iterable<String> args)
Prefixes each of the given linker arguments with "-Xlinker" so that the compiler linker driver
will pass these arguments directly down to the linker rather than interpreting them itself.
|
static Iterable<String> |
iXlinker(String... args) |
public static Iterable<String> iXlinker(Iterable<String> args)
e.g. ["-rpath", "hello/world"] -> ["-Xlinker", "-rpath", "-Xlinker", "hello/world"]
Arguments that do not contain commas can instead be passed using the shorter "-Wl,ARGUMENT" form.
e.g., ["-rpath", "hello/world"] -> ["-Wl,-rpath", "-Wl,hello/world" ]
args
- arguments for the linker.