Commit 33492e76 by Jan Voung

Change a build-attribute REQUIRES check to use supported not requested.

Previously it would print both the targets compiled-in and the target requested on the commandline, but we really only care about what's compiled-in. BUG=none R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1132883003
parent 76bb0bec
...@@ -47,11 +47,8 @@ struct { ...@@ -47,11 +47,8 @@ struct {
// Validates values of build attributes. Prints them to Stream if // Validates values of build attributes. Prints them to Stream if
// Stream is non-null. // Stream is non-null.
void ValidateAndGenerateBuildAttributes(const ClFlags &Flags, Ostream *Stream) { void ValidateAndGenerateBuildAttributes(const ClFlags &Flags, Ostream *Stream) {
// List the supported targets.
if (Stream) { if (Stream) {
// List the requested target.
*Stream << Flags.getTargetArch() << "\n";
// List the supported targets.
#define SUBZERO_TARGET(TARGET) *Stream << "target_" #TARGET << "\n"; #define SUBZERO_TARGET(TARGET) *Stream << "target_" #TARGET << "\n";
#include "llvm/Config/SZTargets.def" #include "llvm/Config/SZTargets.def"
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
; This test depends to some degree on the stability of "--verbose ; This test depends to some degree on the stability of "--verbose
; addropt" output format. ; addropt" output format.
; REQUIRES: x86-32 ; REQUIRES: target_X8632
; REQUIRES: allow_dump ; REQUIRES: allow_dump
; RUN: %p2i -i %s --args -O2 --verbose addropt | FileCheck %s ; RUN: %p2i -i %s --args -O2 --verbose addropt | FileCheck %s
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment