Browse Source

[Pal] Error out on unsupported platforms in regression/ and test/

Isaku Yamahata 4 years ago
parent
commit
8db9c73431
2 changed files with 8 additions and 9 deletions
  1. 4 5
      Pal/regression/Makefile
  2. 4 4
      Pal/test/Makefile

+ 4 - 5
Pal/regression/Makefile

@@ -47,13 +47,12 @@ pal_lib = ../../Runtime/libpal-$(PAL_HOST).so
 
 RUNTIME_DIR = $(CURDIR)/../../Runtime
 
+ifneq ($(findstring x86_64,$(SYS))$(findstring linux,$(SYS)),x86_64linux)
+$(error unsupported platform. $(SYS))
+endif
+
 .PHONY: all
 all: $(target) $(call expand_target_to_sig,$(target)) $(call expand_target_to_sgx,$(target)) $(preloads)
-ifeq ($(findstring x86_64,$(SYS))$(findstring linux,$(SYS)),x86_64linux)
-all: $(target) $(call expand_target_to_sig,$(target)) $(call expand_target_to_sgx,$(target)) $(preloads)
-else
-all:
-endif
 
 .PHONY: sgx-tokens
 sgx-tokens: $(call expand_target_to_token,$(target))

+ 4 - 4
Pal/test/Makefile

@@ -16,12 +16,12 @@ include ../../Scripts/Makefile.manifest
 graphene_lib = .lib/graphene-lib.a
 pal_lib = ../../Runtime/libpal-$(PAL_HOST).so
 
+ifneq ($(findstring x86_64,$(SYS))$(findstring linux,$(SYS)),x86_64linux)
+$(error unsupported platform. $(SYS))
+endif
+
 .PHONY: all
-ifeq ($(findstring x86_64,$(SYS))$(findstring linux,$(SYS)),x86_64linux)
 all: pal_loader $(target) $(call expand_target_to_sig,$(target)) $(call expand_target_to_sgx,$(target))
-else
-all:
-endif
 
 .PHONY: sgx-tokens
 sgx-tokens: $(call expand_target_to_token,$(target))