Skip to content

Commit

Permalink
Nim bindings for #30 (#31)
Browse files Browse the repository at this point in the history
* nim: enable compilation on osx/clang

* mac only on arm64
  • Loading branch information
arnetheduck authored May 24, 2024
1 parent 511d67f commit 27906d9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hashtree_abi.nim
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ const srcDir = currentSourcePath.parentDir.replace('\\', '/') & "/src/"

# The assember files use gnu/binutils-specific macros and lack mac support in
# general
when ((defined(linux) or defined(windows)) and defined(gcc)) or
(defined(clang) and defined(linux)):
when
((defined(linux) or defined(windows)) and defined(gcc)) or
(defined(linux) and defined(clang)) or
(defined(macosx) and defined(clang) and defined(arm64)):

const cflags =
when defined(clang):
when defined(clang) and defined(linux):
# The integrated `clang` assembler uses a different macro syntax but on
# linux we can convince it to use the system assembler which _tends_ to be
# the binutils variant
Expand Down

0 comments on commit 27906d9

Please sign in to comment.