From fbf7734420b16aad42ffaf6b765c6d403676e216 Mon Sep 17 00:00:00 2001 From: Alain Dargelas Date: Thu, 5 Dec 2024 14:30:34 -0800 Subject: [PATCH] Excluded lbfd from MacOs build --- Makefile | 6 ++++-- kernel/yosys.cc | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9a29b40dc..0474ff924 100644 --- a/Makefile +++ b/Makefile @@ -156,6 +156,10 @@ else LINKFLAGS += -rdynamic ifneq ($(OS), OpenBSD) LIBS += -lrt + +LIBS += -lbfd # SILIMATE: support for backward-cpp +CXXFLAGS += -DBACKWARD_HAS_BFD # SILIMATE: support for backward-cpp + endif endif @@ -438,8 +442,6 @@ LIBS += -ldl endif endif -LIBS += -lbfd # SILIMATE: support for backward-cpp - ifeq ($(ENABLE_GLOB),1) CXXFLAGS += -DYOSYS_ENABLE_GLOB endif diff --git a/kernel/yosys.cc b/kernel/yosys.cc index 4a9db0f1d..097dd3a37 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -20,7 +20,6 @@ #include "kernel/yosys.h" #include "kernel/celltypes.h" -#define BACKWARD_HAS_BFD 1 #include "libs/backward-cpp/backward.hpp" #ifdef YOSYS_ENABLE_READLINE