blob: 0ead8173c5ac1b79e219b1b871a0718719ea9f67 [file] [log] [blame]
# These two changes are (respectively):
# * pass CC to ABC since clang is expected instead of clang++,
# * remove hardcoded CXX and LD to use environment-based tools instead.
#
# Both of these changes are required to build Yosys.
--- a/Makefile
+++ b/Makefile
@@ -156,7 +156,7 @@ bumpversion:
ABCREV = 5f40c47
ABCPULL = 1
ABCURL ?= https://github.com/YosysHQ/abc
-ABCMKARGS = CC="$(CXX)" CXX="$(CXX)" ABC_USE_LIBSTDCXX=1 ABC_USE_NAMESPACE=abc VERBOSE=$(Q)
+ABCMKARGS = CC="$(CC)" CXX="$(CXX)" ABC_USE_LIBSTDCXX=1 ABC_USE_NAMESPACE=abc VERBOSE=$(Q)
# set ABCEXTERNAL = <abc-command> to use an external ABC instance
# Note: The in-tree ABC (yosys-abc) will not be installed when ABCEXTERNAL is set.
@@ -198,8 +198,6 @@ endif
endif
ifeq ($(CONFIG),clang)
-CXX = clang
-LD = clang++
CXXFLAGS += -std=$(CXXSTD) -Os
ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H -Wno-c++11-narrowing"