Explicitly add -target for Windows builds in file_test_windows.c
authorAlan Zhao <ayzhao@google.com>
Wed, 11 May 2022 22:05:55 +0000 (15:05 -0700)
committerArthur Eubanks <aeubanks@google.com>
Wed, 11 May 2022 22:05:55 +0000 (15:05 -0700)
commit8016a0e5a56b8afc0f328412adae97369c71af78
treec3d76b6aea5f0b7c36e7607b821fa410500e4198
parent52af5df8aef737b5b609912ea28f79fcb3d9ba22
Explicitly add -target for Windows builds in file_test_windows.c

It turns out that the llvm buildbots run the test with
-DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-scei-ps4, which would cause this
test to fail as the test assumed that the default target is Windows. To
fix this, we explicitly set -target for the Windows testcases.

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D125425
clang/test/Preprocessor/file_test_windows.c