~arankine/distcc/issue16

Viewing all changes in revision 318.

  • Committer: fergus.henderson
  • Date: 2010-08-19 19:23:49 UTC
  • Revision ID: svn-v4:01de4be4-8c4a-0410-9132-4925637da917:trunk:722

Apply --sysroot patch from Simon Baldwin <simonb@google.com>:

2010-08-18  Simon Baldwin  <simonb@google.com>

        * include_server/compiler_defaults.py (_SystemSearchdirsGCC):
        Add a 'sysroot' parameter.  Add --sysroot, if needed, to the gcc
        invocation that identifies search directories and default paths.
        Add debugging output.
        (SetSystemDirsDefaults): Add 'sysroot' parameter.  Add another
        dictionary level to system_dirs_default for sysroot values.
        Add debugging output.
        * include_server/parse_command.py (ParseCommandArgs): Identify
        and handle arguments of the form '--opt=value'.  Pass any
        --sysroot value to compiler_defaults.SetSystemDirsDefaults, use
        it in compiler_defaults.system_dirs_default lookups.
        (CPP_OPTIONS_APPEARING_AS_ASSIGNMENTS): New.
        * include_server/parse_command_test.py (Mock_SetSystemDirsDefaults):
        Add sysroot parameter, verify it on function calls.
        (ParseCommandUnitTest): Add --sysroot to mock gcc invocations.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: