Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BaseTools/Source/C/GNUmakefile: Added a condition for handling invalid A... #2

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions BaseTools/Source/C/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#

ifdef ARCH
#
# ARCH is expected to be a particular string
# all other strings will potentially fail build
#
ifneq ($(ARCH),X64)
ifneq ($(ARCH),IA32)
$(info ERROR: ARCH must be set to X64 or IA32)
$(error ARCH set to invalid/unknown string)
endif
endif
endif

ifndef ARCH
#
# If ARCH is not defined, then we use 'uname -m' to attempt
Expand Down