Skip to content

Commit

Permalink
nim: enable compilation on osx/clang
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck committed May 15, 2024
1 parent bd42166 commit 63fbd1b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hashtree_abi.nim
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ 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) or defined(macosx)) and defined(clang)):

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 63fbd1b

Please sign in to comment.