Skip to content

Commit

Permalink
x86emul: inherit HOSTCC when building 32-bit harness on 64-bit host
Browse files Browse the repository at this point in the history
We're deliberately bringing XEN_COMPILE_ARCH and XEN_TARGET_ARCH out of
sync in this case, and hence HOSTCC won't get set from CC. Therefore
without this addition HOSTCC would not match a possible make command
line override of CC, but default to "gcc", likely causing the build to
fail for test_x86_emulator.c on systems with too old a gcc.

Signed-off-by: Jan Beulich <[email protected]>
Acked-by: Andrew Cooper <[email protected]>
  • Loading branch information
jbeulich committed Apr 3, 2020
1 parent d599739 commit 5b6a3c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/tests/x86_emulator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ install uninstall:
ifeq ($(XEN_COMPILE_ARCH),x86_64)
run32: $(addsuffix .h,$(TESTCASES)) $(addsuffix -opmask.h,$(OPMASK))
run32 clean32: %32:
$(MAKE) -C 32 $*
$(MAKE) -C 32 HOSTCC=$(HOSTCC) $*
clean: clean32
else
run32 clean32: %32: %
Expand Down

0 comments on commit 5b6a3c6

Please sign in to comment.