diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-17 23:38:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-17 23:38:53 +0000 |
commit | 57c69416310ea5eb990800fba75ae99016fa1444 (patch) | |
tree | c47dd4e2350f9a3c8af9d63ab3fa1e6485639bcf /tools/bugpoint/CodeGeneratorBug.cpp | |
parent | 7540565863c11ae3a65fe1a8159cedc0caf55c07 (diff) |
Give correct command line for making a shared object
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7929 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/CodeGeneratorBug.cpp')
-rw-r--r-- | tools/bugpoint/CodeGeneratorBug.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/bugpoint/CodeGeneratorBug.cpp b/tools/bugpoint/CodeGeneratorBug.cpp index 72ea91a4e2..603bf77a70 100644 --- a/tools/bugpoint/CodeGeneratorBug.cpp +++ b/tools/bugpoint/CodeGeneratorBug.cpp @@ -255,7 +255,13 @@ bool ReduceMisCodegenFunctions::TestFuncs(const std::vector<Function*> &Funcs, std::cout << "\n"; std::cout << "The shared object was created with:\n dis -c " << SafeModuleBC << " -o temporary.c\n" - << " gcc -shared temporary.c -o " << SharedObject << "\n"; + << " gcc -xc temporary.c -O2 -o " << SharedObject +#if defined(sparc) || defined(__sparc__) || defined(__sparcv9) + << "-G" // Compile a shared library, `-G' for Sparc +#else + << "-shared" // `-shared' for Linux/X86, maybe others +#endif + << "\n"; } else { removeFile(TestModuleBC); removeFile(SafeModuleBC); |