Skip to content

Commit 73599a1

Browse files
committed
Add HOST_CC and use it in tools/fontmaker
1 parent cc46256 commit 73599a1

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

scripts/gen_tool_defs_linux.sh

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if [ ! -f "${FILE}" ]; then
88
fi
99
echo "LLVM_CC:=`which clang-8`"
1010
echo "LLVM_CXX:=`which clang++-8`"
11+
echo "HOST_CC:=`which clang-8`"
1112
echo "HOST_CXX:=`which clang++-8`"
1213
echo "LLVM_LLD_LINK:=`which lld-link-8`"
1314
echo "LLVM_LD_LLD:=`which ld.lld-8`"

scripts/gen_tool_defs_macos.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
LLVM_PREFIX=`brew --prefix llvm`
22
echo "LLVM_CC:=${LLVM_PREFIX}/bin/clang"
33
echo "LLVM_CXX:=${LLVM_PREFIX}/bin/clang++"
4+
echo "HOST_CC:=clang"
45
echo "HOST_CXX:=clang++"
56
echo "LLVM_LLD_LINK:=${LLVM_PREFIX}/bin/lld-link"
67
echo "LLVM_LD_LLD:=${LLVM_PREFIX}/bin/ld.lld"

tools/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ default: fontmaker
66
include ../common.mk
77

88
fontmaker: Makefile fontmaker.c
9-
$(LLVM_CC) -o $@ fontmaker.c
9+
$(HOST_CC) -o $@ fontmaker.c
1010

1111
clean:
1212
-rm fontmaker

0 commit comments

Comments
 (0)