diff options
author | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2018-11-09 19:00:13 +0100 |
---|---|---|
committer | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2018-11-10 08:35:17 +0100 |
commit | 0caa4b03ddca12f084dd5bfe6775a5eeac7ec8e6 (patch) | |
tree | f04ec8d99db21ad06b4503a9ea091879b3c6a8ac /include_server/parse_command_test.py | |
parent | bdcd546564a3e6b196838d5a6c09e7cfbad83b91 (diff) | |
download | distcc-git-0caa4b03ddca12f084dd5bfe6775a5eeac7ec8e6.tar.gz |
Handle complex arguments, like assembler macros
The Linux kernel has started using statements like
-Wa,macros.s for including assembler with the code.
Handle these similar to the `-imacros` statement,
and send them to the compile server for processing.
Diffstat (limited to 'include_server/parse_command_test.py')
-rwxr-xr-x | include_server/parse_command_test.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include_server/parse_command_test.py b/include_server/parse_command_test.py index 91a5b3a..718c3b8 100755 --- a/include_server/parse_command_test.py +++ b/include_server/parse_command_test.py @@ -133,6 +133,10 @@ class ParseCommandUnitTest(unittest.TestCase): + " -isystem system -Imice -iquote/and -I/men a.c " + " -include included_A.h " + " -includeincluded_B.h " + + " -Wa,macros_A.s " + + " -Wa,[macros_B.s] " + + " -Wa,arch/x86/kernel/macros.s -Wa,- " + + " -Wa,other_directive " + "-Xlinker W,l -L /ignored_by_us -o a.o"), os.getcwd(), self.includepath_map, @@ -146,7 +150,8 @@ class ParseCommandUnitTest(unittest.TestCase): filepath), (('/and', 'mice', '/men', 'system'), ('mice', '/men', 'system'), - ["included_A.h", "included_B.h"], + ["included_A.h", "included_B.h", + "macros_A.s", "macros_B.s", "arch/x86/kernel/macros.s"], 'a.c')) |