From: Daniel Dunbar Date: Mon, 11 May 2009 23:11:21 +0000 (+0000) Subject: Tweak this non-default test so it still works w/ x86 feature support. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31ed552f8f6cf69ac6bc93bc497815b0d9cac0a4;p=clang Tweak this non-default test so it still works w/ x86 feature support. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71494 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/builtin-defines.c b/utils/builtin-defines.c index e8d3356277..9bbe5be250 100644 --- a/utils/builtin-defines.c +++ b/utils/builtin-defines.c @@ -17,7 +17,7 @@ RUN: else \ RUN: cc_prog=gcc; \ RUN: output=%t1; \ RUN: fi; \ -RUN: $cc_prog $arch $lang $opts -dM -E -x $input %s | sort > $output; \ +RUN: $cc_prog $arch $lang $opts -march=core2 -dM -E -x $input %s | sort > $output; \ RUN: done; \ RUN: if (! diff %t0 %t1); then exit 1; fi; \ RUN: done; \ @@ -36,6 +36,11 @@ RUN: done; #endif #endif +/* Undefine things we don't expect to match. */ +#undef __core2 +#undef __core2__ +#undef __SSSE3__ + /* Undefine things we don't expect to match. */ #undef __DEC_EVAL_METHOD__ #undef __INT16_TYPE__