yosys: update Makefile patches

This commit is contained in:
Emily 2019-08-20 02:43:58 -07:00 committed by Austin Seipp
parent cec8795379
commit 771b93817d

View File

@ -40,10 +40,14 @@ stdenv.mkDerivation rec {
patchPhase = ''
substituteInPlace ../yosys-abc/Makefile \
--replace 'CC := gcc' ""
--replace 'CC := gcc' "" \
--replace 'CXX := g++' ""
substituteInPlace ./Makefile \
--replace 'CXX = clang' "" \
--replace 'ABCMKARGS = CC="$(CXX)"' 'ABCMKARGS =' \
--replace 'LD = clang++' 'LD = $(CXX)' \
--replace 'CXX = gcc' "" \
--replace 'LD = gcc' 'LD = $(CXX)' \
--replace 'ABCMKARGS = CC="$(CXX)" CXX="$(CXX)"' 'ABCMKARGS =' \
--replace 'echo UNKNOWN' 'echo ${substring 0 10 (elemAt srcs 0).rev}'
'';