summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfergus.henderson <fergushenderson@users.noreply.github.com>2009-07-24 17:30:08 +0000
committerfergus.henderson <fergushenderson@users.noreply.github.com>2009-07-24 17:30:08 +0000
commit85280b05a1ee94ecbc4086105339e553a4dd79ef (patch)
treeb4d812079a4c97d00d02163c5fc5a515be6d4219
parent6036a4211ca10e55545eac0df37f78c5a7e63a39 (diff)
downloaddistcc-git-85280b05a1ee94ecbc4086105339e553a4dd79ef.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.
-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)