This fix is based on a problem with cxx_compiler and cxx_linker macros on Windows. There was an issue with compiler detection in paths containing "icc". In such case, Makefile.rules thought it was provided with icc compiler. To solve that, utilities detection has been rewritten in Python. The last element of compiler's path is separated, taking into account the platform path delimiter, and compiler type is extracted, with regard of possible cross-toolchain prefix. --------- Co-authored-by: Pavel Labath <pavel@labath.sk>
18 lines
364 B
Makefile
18 lines
364 B
Makefile
C_SOURCES := main.c
|
|
LD_EXTRAS := -L. -lfoo
|
|
|
|
override TRIPLE := $(ARCH)-apple-ios13.0-macabi
|
|
CFLAGS_EXTRAS := -target $(TRIPLE)
|
|
|
|
# FIXME: rdar://problem/54986190
|
|
override CC_TYPE=clang
|
|
override CC=xcrun clang
|
|
|
|
all: libfoo.dylib a.out
|
|
|
|
libfoo.dylib: foo.c
|
|
$(MAKE) -f $(MAKEFILE_RULES) \
|
|
DYLIB_ONLY=YES DYLIB_NAME=foo DYLIB_C_SOURCES=foo.c
|
|
|
|
include Makefile.rules
|