diff mbox series

[03/10] configure: remove HOST_CC

Message ID 20230829082931.67601-4-pbonzini@redhat.com
State New
Headers show
Series configure cleanups for QEMU 8.2 | expand

Commit Message

Paolo Bonzini Aug. 29, 2023, 8:29 a.m. UTC
$(HOST_CC) is only used to invoke the preprocessor, and $(CC) can be
used instead now that there is a Tricore C compiler.  Remove the variable
from config-host.mak.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 configure                                 | 1 -
 tests/tcg/tricore/Makefile.softmmu-target | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

Comments

Daniel P. Berrangé Aug. 29, 2023, 5:12 p.m. UTC | #1
On Tue, Aug 29, 2023 at 10:29:24AM +0200, Paolo Bonzini wrote:
> $(HOST_CC) is only used to invoke the preprocessor, and $(CC) can be
> used instead now that there is a Tricore C compiler.  Remove the variable
> from config-host.mak.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  configure                                 | 1 -
>  tests/tcg/tricore/Makefile.softmmu-target | 2 +-
>  2 files changed, 1 insertion(+), 2 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


With regards,
Daniel
Richard Henderson Aug. 29, 2023, 6:40 p.m. UTC | #2
On 8/29/23 01:29, Paolo Bonzini wrote:
> $(HOST_CC) is only used to invoke the preprocessor, and $(CC) can be
> used instead now that there is a Tricore C compiler.  Remove the variable
> from config-host.mak.
> 
> Signed-off-by: Paolo Bonzini<pbonzini@redhat.com>
> ---
>   configure                                 | 1 -
>   tests/tcg/tricore/Makefile.softmmu-target | 2 +-
>   2 files changed, 1 insertion(+), 2 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~
diff mbox series

Patch

diff --git a/configure b/configure
index b9bd008592a..3423f008d5c 100755
--- a/configure
+++ b/configure
@@ -1794,7 +1794,6 @@  fi
 mkdir -p tests/tcg
 echo "# Automatically generated by configure - do not modify" > $config_host_mak
 echo "SRC_PATH=$source_path" >> $config_host_mak
-echo "HOST_CC=$host_cc" >> $config_host_mak
 
 # versioned checked in the main config_host.mak above
 if test -n "$gdb_bin"; then
diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/Makefile.softmmu-target
index aff7c1b5802..2ec0bd36225 100644
--- a/tests/tcg/tricore/Makefile.softmmu-target
+++ b/tests/tcg/tricore/Makefile.softmmu-target
@@ -28,7 +28,7 @@  TESTS += test_context_save_areas.c.tst
 QEMU_OPTS += -M tricore_testboard -cpu tc27x -nographic -kernel
 
 %.pS: $(ASM_TESTS_PATH)/%.S
-	$(HOST_CC) -E -o $@ $<
+	$(CC) -E -o $@ $<
 
 %.o: %.pS
 	$(AS) $(ASFLAGS) -o $@ $<