diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-04-30 15:24:09 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-04-30 15:24:09 +0000 |
commit | 195bea3498a7de1d84ace6d4685f02d4d7485468 (patch) | |
tree | ef987190535265c94f3c479cab77548c8c8517ac /tools/lto/lto.cpp | |
parent | 4e5ea553d055512b0b8aa098e363ae17bafda957 (diff) | |
download | llvm-195bea3498a7de1d84ace6d4685f02d4d7485468.tar.gz llvm-195bea3498a7de1d84ace6d4685f02d4d7485468.tar.bz2 llvm-195bea3498a7de1d84ace6d4685f02d4d7485468.tar.xz |
Allow a user of libLTO to specify the full pathname of the gcc executable to
run when assembling.
Wire this up to the gold plugin. You can now pass --plugin-opt gcc=/foo/bar/gcc
and it will run that gcc instead of looking for it on the path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70490 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto/lto.cpp')
-rw-r--r-- | tools/lto/lto.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index 227823f32f..5c3f90aa48 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -202,6 +202,14 @@ bool lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model model) } // +// sets the path to gcc +// +void lto_codegen_set_gcc_path(lto_code_gen_t cg, const char* path) +{ + cg->setGccPath(path); +} + +// // adds to a list of all global symbols that must exist in the final // generated code. If a function is not listed there, it might be // inlined into every usage and optimized away. |