diff --git a/test/Modules/self-import-header/test.m b/test/Modules/self-import-header/test.m
index 52cae7ebff11e847c3cd3ad06b0a29232f041957..377c01d66eb32b87a24258225bab020ac6def9ff 100644
--- a/test/Modules/self-import-header/test.m
+++ b/test/Modules/self-import-header/test.m
@@ -2,6 +2,7 @@
 
 // RUN: rm -rf %t
 // RUN: %clang -fsyntax-only -isysroot %S/../Inputs/System/usr/include -fmodules -fmodules-cache-path=%t \
+// RUN:    -target x86_64-darwin \
 // RUN:    -F %S -I %S %s -D__need_wint_t -Werror=implicit-function-declaration
 
 @import af;