Skip to content

Commit

Permalink
post-rebase generate/update CMakeLists.txt files, update tox file
Browse files Browse the repository at this point in the history
* includes fix timespec redefinition errors on windows
* updates tox argument syntax on macos

Signed-off-by: Stephen L Arnold <nerdboy@gentoo.org>
  • Loading branch information
sarnold committed Jul 23, 2023
1 parent 37e91a3 commit a6f8bfc
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
os: macOS-11
compiler: xcode
version: "12.4"
toxcmd: "base Xcode"
toxcmd: "base -- Xcode"

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions src/aig/gia/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,14 @@ abc_libabc_add_sources(
giaCSat3.c
giaEra2.c
giaIff.c
giaTranStoch.c
giaSpeedup.c
giaAiger.c
gia.c
giaDfs.c
giaShrink7.c
giaMem.c
giaTransduction.cpp
giaSupMin.c
giaStoch.c
giaJf.c
Expand Down
2 changes: 1 addition & 1 deletion src/aig/gia/giaTranStoch.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#ifdef ABC_USE_PTHREADS

#ifdef _WIN32
#if (defined(_WIN32) && !defined(__MINGW32__))
#include "../lib/pthread.h"
#else
#include <pthread.h>
Expand Down
1 change: 1 addition & 0 deletions src/base/abci/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ abc_libabc_add_sources(
SOURCES
abcFx.c
abcLutmin.c
abcOrchestration.c
abcMap.c
abcExtract.c
abcBm.c
Expand Down
1 change: 1 addition & 0 deletions src/base/io/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ abc_libabc_add_sources(
ioWriteVerilog.c
ioReadPlaMo.c
ioWritePla.c
ioWriteEdgelist.c
ioWriteBaf.c
ioWriteBench.c
ioReadEdif.c
Expand Down
2 changes: 1 addition & 1 deletion src/proof/ssw/sswPart.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#ifdef ABC_USE_PTHREADS

#ifdef _WIN32
#if (defined(_WIN32) && !defined(__MINGW32__))
#include "../lib/pthread.h"
#else
#include <pthread.h>
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ commands =
# eg: CC=gcc CXX=g++ tox -e demo
demo: bash -c '$CC {posargs} -Wall -c src/demo.c -o demo.o'
demo: bash -c '$CXX -o demo demo.o libabc.a -lm -ldl -lreadline -lpthread'
demo: ./demo i10.aig
demo: bash -c './demo i10.aig'
{abc,soname,tests}: bash -c 'ls -lh *abc* demo || true'
base: bash -c 'cmake -G {posargs:"Ninja"} -DABC_USE_NAMESPACE=$ABC_USE_NAMESPACE -DCMAKE_INSTALL_PREFIX=$PREFIX -S . -B build'
base: cmake --build build --target install
base: cmake -j $(nproc) --build build --target install
build: bash -c 'cmake -G {posargs:"Unix Makefiles"} -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DABC_USE_NAMESPACE=$ABC_USE_NAMESPACE -DABC_ENABLE_LTO=ON -DBUILD_SHARED_LIBS=ON -DABC_USE_SONAME=$ABC_USE_SONAME -DCMAKE_INSTALL_PREFIX=$PREFIX ..'
clang: bash -c 'cmake -G {posargs:"Unix Makefiles"} -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DABC_USE_NAMESPACE=$ABC_USE_NAMESPACE -DCOVERAGE_BUILD=ON -DBUILD_SHARED_LIBS=OFF ..'
{build}: bash -c 'cmake --build . -j $(nproc)'
Expand Down

0 comments on commit a6f8bfc

Please sign in to comment.