Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #9 from lpsmith/endian.c
Browse files Browse the repository at this point in the history
Conditionally compile cbits/endian.c
  • Loading branch information
vincenthz committed Nov 12, 2013
2 parents f1ce50c + 349ac46 commit eab0bc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpu.cabal
Expand Up @@ -14,6 +14,7 @@ stability: experimental
Cabal-Version: >=1.8
Homepage: http://github.com/vincenthz/hs-cpu
data-files: README.md
Extra-source-files: cbits/endian.c

Flag executable
Description: Build the executable
Expand All @@ -26,7 +27,8 @@ Library
System.Arch
ghc-options: -Wall

C-sources: cbits/endian.c
if impl(ghc < 7.8)
C-sources: cbits/endian.c

if arch(i386)
Cpp-options: -DARCH_X86
Expand Down

0 comments on commit eab0bc8

Please sign in to comment.