we use xcrun to determine the correct path. In the future those should be determined at configure time or even runtime of tcc itself.
Showing the changes to lib (1 of 1 file). Show all
Unified · Split
| @@ -17,6 +17,10 @@ XFLAGS = $(XFLAGS$(XCFG)) -I$(TOP) · 16 unmodified lines | |||
| 17 | XCFG = $(or $(findstring -win,$T),-unx) | 17 | XCFG = $(or $(findstring -win,$T),-unx) |
| 18 | S = $(if $(findstring yes,$(SILENT)),@$(info * $@)) | 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 | # in order to use gcc, type: make <target>-libtcc1-usegcc=yes | 24 | # in order to use gcc, type: make <target>-libtcc1-usegcc=yes |
| 21 | arm-libtcc1-usegcc ?= no | 25 | arm-libtcc1-usegcc ?= no |
| 22 | 26 | ||