Class Linkers
- java.lang.Object
-
- com.facebook.buck.cxx.toolchain.linker.impl.Linkers
-
public class Linkers extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
iXlinker
public 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.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" ]
- Parameters:
args
- arguments for the linker.- Returns:
- arguments to be passed to the compiler linker driver.
-
-