History

macos: Add system include dir for building libs

we use xcrun to determine the correct path. In the future those should be determined at configure time or even runtime of tcc itself.

Michael Matz committed 6 years ago

Commit 34a56581 parent 4cc27b81 file · +4 −0Browse files

Showing the changes to lib (1 of 1 file). Show all

Unified · Split

lib/Makefile+4−0
@@ -17,6 +17,10 @@ XFLAGS = $(XFLAGS$(XCFG)) -I$(TOP) · 16 unmodified lines
17XCFG = $(or $(findstring -win,$T),-unx)17XCFG = $(or $(findstring -win,$T),-unx)
18S = $(if $(findstring yes,$(SILENT)),@$(info * $@))18S = $(if $(findstring yes,$(SILENT)),@$(info * $@))
19 19
20ifdef CONFIG_OSX
21 XFLAGS += -I`xcrun --show-sdk-path`/usr/include
22endif
23
20# in order to use gcc, type: make <target>-libtcc1-usegcc=yes24# in order to use gcc, type: make <target>-libtcc1-usegcc=yes
21arm-libtcc1-usegcc ?= no25arm-libtcc1-usegcc ?= no
22 26

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t