diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-06-22 11:06:27 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-07-06 09:31:16 +0200 |
commit | bb52a8a278782f4e0f009d3568e60a9689b64da7 (patch) | |
tree | 941f7fd748e177720e47a74f25bd380c7cee219a /tests/tcg/Makefile.target | |
parent | e81785abba296ee6b54b6ae833cac45020b5ba6a (diff) | |
download | qemu-bb52a8a278782f4e0f009d3568e60a9689b64da7.zip qemu-bb52a8a278782f4e0f009d3568e60a9689b64da7.tar.gz qemu-bb52a8a278782f4e0f009d3568e60a9689b64da7.tar.bz2 |
tests/tcg: compile system emulation tests as freestanding
System emulation tests do not run in a hosted environment, since they
do not link with libc. They should only use freestanding headers
(float.h, limits.h, stdarg.h, stddef.h, stdbool.h, stdint.h,
stdalign.h, stdnoreturn.h) and should be compiled with -ffreestanding
in order to use the compiler implementation of those headers
rather than the one in libc.
Some tests are using inttypes.h instead of stdint.h, so fix that.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/tcg/Makefile.target')
-rw-r--r-- | tests/tcg/Makefile.target | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index f427a03..e68830a 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -111,6 +111,7 @@ else # For softmmu targets we include a different Makefile fragement as the # build options for bare programs are usually pretty different. They # are expected to provide their own build recipes. +EXTRA_CFLAGS += -ffreestanding -include $(SRC_PATH)/tests/tcg/minilib/Makefile.target -include $(SRC_PATH)/tests/tcg/multiarch/system/Makefile.softmmu-target -include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.softmmu-target |