Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 13bc8bb

Browse files
author
marcrasi
authored
do the swift-models build with the right flag when using the stock toolchain (#1163)
1 parent 8a910b4 commit 13bc8bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ RUN git clone https://github.com/deepmind/open_spiel.git
7676

7777
WORKDIR /swift-models
7878

79-
RUN /swift-tensorflow-toolchain/usr/bin/swift build
79+
RUN /swift-tensorflow-toolchain/usr/bin/swift build \
80+
$([ "$TENSORFLOW_USE_STANDARD_TOOLCHAIN" = "YES" ] && echo "-Xswiftc -D -Xswiftc TENSORFLOW_USE_STANDARD_TOOLCHAIN")
8081
# Swift Numerics in release mode does not currently build, which prevents the use of swift-models
81-
# RUN /swift-tensorflow-toolchain/usr/bin/swift build -c release
82+
# RUN /swift-tensorflow-toolchain/usr/bin/swift build -c release \
83+
# $([ "$TENSORFLOW_USE_STANDARD_TOOLCHAIN" = "YES" ] && echo "-Xswiftc -D -Xswiftc TENSORFLOW_USE_STANDARD_TOOLCHAIN")
8284

8385
WORKDIR /fastai_dev/swift/FastaiNotebook_11_imagenette
8486

0 commit comments

Comments
 (0)