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

Unified · Split

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

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