summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917>2009-07-24 17:30:08 +0000
committerfergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917>2009-07-24 17:30:08 +0000
commit46e253464e22d45bf3f629c676efc559118b863b (patch)
treeb4d812079a4c97d00d02163c5fc5a515be6d4219
parent7c50cce11aef365a34d199487d2f28a43b7f8c0a (diff)
downloaddistcc-46e253464e22d45bf3f629c676efc559118b863b.tar.gz
Pass "-c" to gcc for the Dotd_Case tests.
This fixes a problem where this test was failing on some systems due to link errors when compiling C++ source files with "gcc foo.cpp". To link C++ code, you now need to use "g++ foo.cpp" or "gcc foo.cpp -lstdc++", even if the C++ code in question doesn't use any C++ library features. Rather than changing the code to use "g++" or "-lstdc++", I though it was better to avoid the link step entirely, since it is not needed for the things this test is testing, and removing it will speed up the test. Reviewed by Craig Silverstein. git-svn-id: http://distcc.googlecode.com/svn/trunk@706 01de4be4-8c4a-0410-9132-4925637da917
-rwxr-xr-xtest/testdistcc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testdistcc.py b/test/testdistcc.py
index 0501c1b..cdfb831 100755
--- a/test/testdistcc.py
+++ b/test/testdistcc.py
@@ -606,7 +606,7 @@ int main(void) { return 0; }
def sourceFilename(self):
return args.split()[0]
def compileCmd(self):
- return _gcc + " " + args
+ return _gcc + " -c " + args
def runtest(self):
self.compile()
glob_result = glob.glob(dep_glob)