Merge pull request #2414 from zeldin/abc-depend-clang-fix

Prevent CXXFLAGS from leaking to abc Makefile
This commit is contained in:
whitequark 2020-11-07 18:48:03 +00:00 committed by GitHub
commit 630be7e11a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -661,6 +661,10 @@ ifeq ($(LINK_ABC),1)
OBJS += $(PROGRAM_PREFIX)yosys-libabc.a OBJS += $(PROGRAM_PREFIX)yosys-libabc.a
endif endif
# prevent the CXXFLAGS set by this Makefile from reaching abc/Makefile,
# especially the -MD flag which will break the build when CXX is clang
unexport CXXFLAGS
top-all: $(TARGETS) $(EXTRA_TARGETS) top-all: $(TARGETS) $(EXTRA_TARGETS)
@echo "" @echo ""
@echo " Build successful." @echo " Build successful."