Skip to content

Commit

Permalink
Fix import Numerics
Browse files Browse the repository at this point in the history
  • Loading branch information
kishikawakatsumi committed Oct 17, 2024
1 parent 9df2d74 commit b723468
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ WORKDIR /app
COPY ./_Packages/ ./swiftfiddle.com/_Packages/
RUN cd ./swiftfiddle.com/_Packages/ \
&& swift build -c release \
&& rm -rf .build/checkouts/ .build/repositories/
&& rm -rf .build/repositories/

RUN echo 'int isatty(int fd) { return 1; }' | \
clang -O2 -fpic -shared -ldl -o faketty.so -xc -
Expand Down
3 changes: 2 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ function makeSwiftCommand(
): Deno.Command {
const command = parameters.command || "swift";
const options = parameters.options ||
"-I ./swiftfiddle.com/_Packages/.build/release/ -L ./swiftfiddle.com/_Packages/.build/release/ -l_Packages -enable-bare-slash-regex";
"-I ./swiftfiddle.com/_Packages/.build/release/ -I ./swiftfiddle.com/_Packages/.build/checkouts/swift-numerics/Sources/_NumericsShims/include/ -L ./swiftfiddle.com/_Packages/.build/release/ -l_Packages -enable-bare-slash-regex";

const timeout = parameters.timeout || 60;
const color = parameters._color || false;
const env = color
Expand Down

0 comments on commit b723468

Please sign in to comment.