we use xcrun to determine the correct path. In the future those should be determined at configure time or even runtime of tcc itself.
Unified · Split
| @@ -17,6 +17,10 @@ XFLAGS = $(XFLAGS$(XCFG)) -I$(TOP) · 16 unmodified lines | ||
| 17 | 17 | XCFG = $(or $(findstring -win,$T),-unx) |
| 18 | 18 | S = $(if $(findstring yes,$(SILENT)),@$(info * $@)) |
| 19 | 19 | |
| 20 | +ifdef CONFIG_OSX | |
| 21 | + XFLAGS += -I`xcrun --show-sdk-path`/usr/include | |
| 22 | +endif | |
| 23 | + | |
| 20 | 24 | # in order to use gcc, type: make <target>-libtcc1-usegcc=yes |
| 21 | 25 | arm-libtcc1-usegcc ?= no |
| 22 | 26 | |