Browse Source
prevent fallthough if TARGET is incorrect
If the user supplies an incorrect TARGET in Makefile.rule, the build system should detect it and error out.
Fixes #1938
pull/1941/head
TiborGY
GitHub
7 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
getarch.c
|
|
|
@@ -1068,6 +1068,10 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
|
|
|
|
|
|
#ifndef FORCE |
|
|
|
|
|
|
|
#ifdef USER_TARGET |
|
|
|
#error "The target specified in Makefile.rule is not supported. Please choose a target from TargetList.txt and revise Makefile.rule." |
|
|
|
#endif |
|
|
|
|
|
|
|
#if defined(__powerpc__) || defined(__powerpc) || defined(powerpc) || \ |
|
|
|
defined(__PPC__) || defined(PPC) || defined(_POWER) || defined(__POWERPC__) |
|
|
|
#ifndef POWER |
|
|
|
|