On 5/17/22 02:26, Paolo Bonzini wrote:
Just hardcode $(CC) -E, it should be enough.

Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
---
  configure                  | 3 ---
  pc-bios/optionrom/Makefile | 2 +-
  2 files changed, 1 insertion(+), 4 deletions(-)

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

  %.o: %.S
-       $(call quiet-command,$(CPP) $(CPPFLAGS) -c -o - $< | $(AS) $(ASFLAGS) -o 
$@,"AS","$@")
+       $(call quiet-command,$(CC) $(CPPFLAGS) -E -o - $< | $(AS) $(ASFLAGS) -o 
$@,"AS","$@")

Although I'm surprised we need to do this pipe thing. Surely just rely on the assembler-with-cpp rule built into the compiler driver. Are we using a custom AS in this case?


r~

Reply via email to