You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 1, 2023. It is now read-only.
Unify the handling of SWIFTFLAGS for stock and non-stock toolchains.
Unfortunately, docker cannot pass along environment variables (outside
of `ARGS`). We could pass the values through `ARGS` by creating a new
base and switching between the base determined by the toolchain we are
using. Alternatively, we can create a file to pass along the state,
which I have opted to use here.
RUN /swift-tensorflow-toolchain/usr/bin/swift build
88
-
RUN /swift-tensorflow-toolchain/usr/bin/swift build -c release
91
+
RUN /swift-tensorflow-toolchain/usr/bin/swift build $(cat /.swiftflags)
92
+
RUN /swift-tensorflow-toolchain/usr/bin/swift build -c release $(cat /.swiftflags)
89
93
90
94
WORKDIR /open_spiel
91
95
RUN rm -f Package.resolved
92
-
RUN /swift-tensorflow-toolchain/usr/bin/swift test
96
+
RUN /swift-tensorflow-toolchain/usr/bin/swift test $(cat /.swiftflags)
93
97
94
98
WORKDIR /swift-apis
95
99
# TODO: move into bash scripts...
@@ -103,4 +107,4 @@ RUN python3 Utilities/benchmark_compile.py /swift-tensorflow-toolchain/usr/bin/s
103
107
104
108
# Run SwiftPM tests
105
109
RUN rm -f /swift-tensorflow-toolchain/usr/lib/swift/tensorflow/module.modulemap
106
-
RUN /swift-tensorflow-toolchain/usr/bin/swift test -Xcc -I/swift-tensorflow-toolchain/usr/lib/swift -Xlinker -L/swift-tensorflow-toolchain/usr/lib/swift/linux
110
+
RUN /swift-tensorflow-toolchain/usr/bin/swift test $(cat /.swiftflags)
0 commit comments