diff options
author | pcloudy <pcloudy@google.com> | 2018-07-02 04:23:31 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-07-02 04:24:41 -0700 |
commit | 381b3a1086d9b1e56efd0dd2623718ae42cf4d1a (patch) | |
tree | 73fb2622f30972d6a12829be670b9dd1d932c540 /src/test/py | |
parent | e5a7db9a97f4a5be7a6584678592bad777aa6139 (diff) |
Windows CROSSTOOL: Add action_config for preprocess-assemble
Fixed https://github.com/bazelbuild/bazel/issues/5495
RELNOTES: None
PiperOrigin-RevId: 202929359
Diffstat (limited to 'src/test/py')
-rw-r--r-- | src/test/py/bazel/bazel_windows_test.py | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/test/py/bazel/bazel_windows_test.py b/src/test/py/bazel/bazel_windows_test.py index 259ec8230a..81db6774e4 100644 --- a/src/test/py/bazel/bazel_windows_test.py +++ b/src/test/py/bazel/bazel_windows_test.py @@ -77,12 +77,13 @@ class BazelWindowsTest(test_base.TestBase): 'cc_binary(', ' name="x",', ' srcs=[' - ' "x.asm",', + ' "inc.asm",', # Test assemble action_config + ' "dec.S",', # Test preprocess-assemble action_config ' "y.cc",', ' ],', ')', ]) - self.ScratchFile('x.asm', [ + self.ScratchFile('inc.asm', [ '.code', 'PUBLIC increment', 'increment PROC x:WORD', @@ -92,13 +93,26 @@ class BazelWindowsTest(test_base.TestBase): 'increment EndP', 'END', ]) + self.ScratchFile('dec.S', [ + '.code', + 'PUBLIC decrement', + 'decrement PROC x:WORD', + ' xchg rcx,rax', + ' dec rax', + ' ret', + 'decrement EndP', + 'END', + ]) self.ScratchFile('y.cc', [ '#include <stdio.h>', 'extern "C" int increment(int);', + 'extern "C" int decrement(int);', 'int main(int, char**) {' ' int x = 5;', ' x = increment(x);', ' printf("%d\\n", x);', + ' x = decrement(x);', + ' printf("%d\\n", x);', ' return 0;', '}', ]) |