diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2022-07-27 14:16:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 14:16:46 +0200 |
commit | 29a5947bf83c8011e62cc859a0a832ee8ab690ee (patch) | |
tree | 0a894b3a5c42fff225f703d472ef4edbce3d3f86 /Makefile | |
parent | bc012995b44ca9a68524ae3a1ecb4b871d1436c9 (diff) | |
download | yosys-29a5947bf83c8011e62cc859a0a832ee8ab690ee.tar.gz yosys-29a5947bf83c8011e62cc859a0a832ee8ab690ee.tar.bz2 yosys-29a5947bf83c8011e62cc859a0a832ee8ab690ee.zip |
Make all compile under OpenBSD (#3423)
Co-authored-by: Josuah Demangeon <me@josuah.net>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -155,7 +155,7 @@ bumpversion: # is just a symlink to your actual ABC working directory, as 'make mrproper' # will remove the 'abc' directory and you do not want to accidentally # delete your work on ABC.. -ABCREV = 4e89fc7 +ABCREV = 7cc11f7 ABCPULL = 1 ABCURL ?= https://github.com/YosysHQ/abc ABCMKARGS = CC="$(CXX)" CXX="$(CXX)" ABC_USE_LIBSTDCXX=1 ABC_USE_NAMESPACE=abc VERBOSE=$(Q) @@ -199,11 +199,16 @@ endif endif +ABC_ARCHFLAGS = "" +ifeq ($(OS), OpenBSD) +ABC_ARCHFLAGS += "-DABC_NO_RLIMIT" +endif + ifeq ($(CONFIG),clang) CXX = clang LD = clang++ CXXFLAGS += -std=$(CXXSTD) -Os -ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H -Wno-c++11-narrowing" +ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H -Wno-c++11-narrowing $(ABC_ARCHFLAGS)" ifneq ($(SANITIZER),) $(info [Clang Sanitizer] $(SANITIZER)) @@ -226,7 +231,7 @@ else ifeq ($(CONFIG),gcc) CXX = gcc LD = gcc CXXFLAGS += -std=$(CXXSTD) -Os -ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H" +ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H $(ABC_ARCHFLAGS)" else ifeq ($(CONFIG),gcc-static) LD = $(CXX) |