Fix MODE=dbg build errors

This commit is contained in:
Justine Tunney 2024-05-04 23:20:12 -07:00
parent b0df6c1fce
commit f9fc7eb49f
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 3 additions and 1 deletions

View file

@ -128,7 +128,7 @@ exp10 (double x)
Approximate the two components separately. */
/* s = 2^(k/N), using lookup table. */
uint64_t e = ki << (52 - EXP_TABLE_BITS);
uint64_t e = (uint64_t)ki << (52 - EXP_TABLE_BITS);
uint64_t i = (ki & IndexMask) * 2;
uint64_t u = __exp_data.tab[i + 1];
uint64_t sbits = u + e;

View file

@ -11,6 +11,7 @@
# GCC-built chibicc, and a second time with chibicc-built chibicc
ifeq ($(ARCH), x86_64)
ifneq ($(MODE), dbg)
PKGS += THIRD_PARTY_CHIBICC_TEST
@ -75,6 +76,7 @@ o/$(MODE)/third_party/chibicc/test/%.o: \
@$(COMPILE) -wAOBJECTIFY.c $(CHIBICC) $(CHIBICC_FLAGS) $(OUTPUT_OPTION) -c $<
endif
endif
.PHONY: o/$(MODE)/third_party/chibicc/test
o/$(MODE)/third_party/chibicc/test: \