Skip to content

Commit 2d37f21

Browse files
committed
Try to fix clang/test/Driver/cl-options.c on non-x86 hosts
The /QIntel-jcc-erratum flag only works when targeting x86, so pass --target to the driver to do that also on non-x86 hosts.
1 parent cb393f4 commit 2d37f21

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/test/Driver/cl-options.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
// RUN: %clang_cl /d1PP -### -- %s 2>&1 | FileCheck -check-prefix=d1PP %s
300300
// d1PP: -dD
301301

302-
// RUN: %clang_cl /c /QIntel-jcc-erratum -### -- %s 2>&1 | FileCheck -check-prefix=jcceratum %s
302+
// RUN: %clang_cl --target=i686-pc-windows-msvc /c /QIntel-jcc-erratum -### -- %s 2>&1 | FileCheck -check-prefix=jcceratum %s
303303
// jcceratum: "-mllvm" "-x86-branches-within-32B-boundaries"
304304

305305

@@ -471,7 +471,6 @@
471471
// RUN: /openmp:experimental \
472472
// RUN: /Qfast_transcendentals \
473473
// RUN: /QIfist \
474-
// RUN: /QIntel-jcc-erratum \
475474
// RUN: /Qimprecise_fwaits \
476475
// RUN: /Qpar \
477476
// RUN: /Qpar-report:1 \

0 commit comments

Comments
 (0)