diff options
author | Tim Murray <timmurray@google.com> | 2015-01-22 15:15:17 -0800 |
---|---|---|
committer | Tim Murray <timmurray@google.com> | 2015-01-22 15:15:17 -0800 |
commit | 77c1d553e5799aef5add08667e71b62b6842ed2e (patch) | |
tree | 2d1c35d51fe6154a1baa97209c4fdf31ad78d8df /tools | |
parent | 0743f576413209c87f9dd702995503b8d4b1ba66 (diff) | |
download | libbcc-77c1d553e5799aef5add08667e71b62b6842ed2e.tar.gz |
Fix -emit-llvm with shared object compilation.
Change-Id: I696f3777a0981a875772d7340970a6cb49581cd7
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bcc/Main.cpp | 2 | ||||
-rw-r--r-- | tools/bcc_compat/Main.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/bcc/Main.cpp b/tools/bcc/Main.cpp index d15f5a9..c9ac25f 100644 --- a/tools/bcc/Main.cpp +++ b/tools/bcc/Main.cpp @@ -306,7 +306,7 @@ int main(int argc, char **argv) { llvm::sys::path::append(output, "/", OptOutputFilename); llvm::sys::path::replace_extension(output, ".o"); - if (!RSCD.buildForCompatLib(*s, output.c_str(), OptBCLibFilename.c_str())) { + if (!RSCD.buildForCompatLib(*s, output.c_str(), OptBCLibFilename.c_str(), OptEmitLLVM)) { fprintf(stderr, "Failed to compile script!"); return EXIT_FAILURE; } diff --git a/tools/bcc_compat/Main.cpp b/tools/bcc_compat/Main.cpp index 3337ffd..7358222 100644 --- a/tools/bcc_compat/Main.cpp +++ b/tools/bcc_compat/Main.cpp @@ -268,7 +268,7 @@ int main(int argc, char **argv) { RSScript *s = nullptr; s = PrepareRSScript(context, OptInputFilenames); - if (!rscd.buildForCompatLib(*s, OutputFilename.c_str(), OptRuntimePath.c_str())) { + if (!rscd.buildForCompatLib(*s, OutputFilename.c_str(), OptRuntimePath.c_str(), false)) { fprintf(stderr, "Failed to compile script!"); return EXIT_FAILURE; } |