1
0
Fork 0
mirror of https://github.com/tensorflow/haskell.git synced 2024-12-24 18:49:46 +01:00

Add extra-lib-dirs back into .cabal for Mac builds. (#122)

Also bump the version to 0.1.0.2.

Originally we had `extra-lib-dirs: /usr/local/lib` in `stack.yaml`.
I removed it because it wasn't necessary on my Mac.  However,
it turns out that it is necessary for machines with the default installation
of XCode, which *doesn't* search that path by default.

(On my machine, it wasn't necessary because I had run `xcode-select --install`
which adds that path permanently to your search path.  For more context, see
https://github.com/Homebrew/brew/issues/556.)

I'm adding the setting back to `tensorflow.cabal` as well as `stack.yaml` so
that the Hackage release also contains this fix.  Changing `stack.yaml` is
still necessary in order to fix linkage in the `snappy` package (which
`tensorflow-records` depends on).  Hopefully that will go away once we remove
the dependency (#118).
This commit is contained in:
Judah Jacobson 2017-05-16 15:18:01 -07:00 committed by GitHub
parent 0f04e5a50d
commit d98e5d637c
2 changed files with 15 additions and 1 deletions

View file

@ -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

View file

@ -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