summaryrefslogtreecommitdiff
path: root/include_server
diff options
context:
space:
mode:
authorfergus.henderson <fergushenderson@users.noreply.github.com>2008-09-11 18:48:19 +0000
committerfergus.henderson <fergushenderson@users.noreply.github.com>2008-09-11 18:48:19 +0000
commit5f70addb6e2967c74bda8575bb969948175ab030 (patch)
tree7494c01b6fa249ea58a6a2a01e0568a02192771e /include_server
parent67db38dab46320b2c8d8a569beb24df22e75f559 (diff)
downloaddistcc-git-5f70addb6e2967c74bda8575bb969948175ab030.tar.gz
Provides a simple shell API to the include server:
add a new "--scan-includes" option to distcc which shows which headers distcc would send to the remote machine in pump mode, without actually compiling anything.
Diffstat (limited to 'include_server')
-rwxr-xr-xinclude_server/include_analyzer.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/include_server/include_analyzer.py b/include_server/include_analyzer.py
index c284c3f..576fa17 100755
--- a/include_server/include_analyzer.py
+++ b/include_server/include_analyzer.py
@@ -313,8 +313,10 @@ class IncludeAnalyzer(object):
"""
must_exist_dirs = self.mirror_path.MustExistDirs()
- random_name = 'forcing_technique_271828'
- forcing_files = [d + '/' + random_name
+ # Note: distcc's --scan-includes option needs to
+ # know about this name; see ../src/compile.c.
+ special_name = 'forcing_technique_271828'
+ forcing_files = [d + '/' + special_name
for d in must_exist_dirs]
for forcing_file in forcing_files:
# If for extremly obscure reasons the file already exists and is useful,