Library search path resolution.

This commit is contained in:
Alexander Gorshenev
2017-05-22 15:35:21 +03:00
committed by alexander-gorshenev
parent 1b30f0988b
commit 48742b7f3f
7 changed files with 112 additions and 3 deletions
@@ -101,6 +101,8 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
put(NATIVE_LIBRARY_FILES,
arguments.nativeLibraries.toNonNullList())
put(REPOSITORIES,
arguments.repositories.toNonNullList())
// TODO: Collect all the explicit file names into an object
// and teach the compiler to work with temporaries and -save-temps.
@@ -83,6 +83,9 @@ public class K2NativeCompilerArguments extends CommonCompilerArguments {
@Argument(value = "--print_bitcode", description = "Print llvm bitcode")
public boolean printBitCode;
@Argument(value = "-repo", shortName = "-r", valueDescription = "<path>", description = "Library search path")
public String[] repositories;
@Argument(value = "--verify_ir", description = "Verify IR")
public boolean verifyIr;