From 195bea3498a7de1d84ace6d4685f02d4d7485468 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Thu, 30 Apr 2009 15:24:09 +0000 Subject: 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 --- tools/lto/lto.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools/lto/lto.cpp') 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 @@ -201,6 +201,14 @@ bool lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model model) return cg->setCodePICModel(model, sLastErrorString); } +// +// 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 -- cgit v1.2.3