diff --git a/stack.yaml b/stack.yaml index e260231..210a331 100644 --- a/stack.yaml +++ b/stack.yaml @@ -16,3 +16,11 @@ packages: extra-deps: - snappy-framing-0.1.1 - snappy-0.2.0.2 + +# For Mac OS X, whose linker doesn't use this path by default +# unless you run `xcode-select --install`. +# TODO: remove this once we stop depending on `snappy`. +extra-lib-dirs: + - /usr/local/lib +extra-include-dirs: + - /usr/local/include diff --git a/tensorflow/tensorflow.cabal b/tensorflow/tensorflow.cabal index 2ce4bb1..8b3e3b2 100644 --- a/tensorflow/tensorflow.cabal +++ b/tensorflow/tensorflow.cabal @@ -1,5 +1,5 @@ name: tensorflow -version: 0.1.0.1 +version: 0.1.0.2 synopsis: TensorFlow bindings. description: This library provides an interface to the TensorFlow @@ -61,6 +61,12 @@ library extra-libraries: tensorflow default-language: Haskell2010 include-dirs: . + if os(darwin) { + -- The default XCode installation doesn't search this path, so add it + -- manually. Alternately, users can run `xcode-select --install` to add + -- it permanently to their search path. + extra-lib-dirs: /usr/local/lib + } Test-Suite FFITest default-language: Haskell2010