From b723468361b6d04db768503f3484c28ccb07b691 Mon Sep 17 00:00:00 2001 From: Kishikawa Katsumi Date: Thu, 17 Oct 2024 16:16:09 +0900 Subject: [PATCH] Fix import Numerics --- renovate.json => .github/renovate.json | 0 Dockerfile | 2 +- main.ts | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) rename renovate.json => .github/renovate.json (100%) diff --git a/renovate.json b/.github/renovate.json similarity index 100% rename from renovate.json rename to .github/renovate.json diff --git a/Dockerfile b/Dockerfile index 8903f67..7237391 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 - diff --git a/main.ts b/main.ts index 11d93b9..fdc6d25 100644 --- a/main.ts +++ b/main.ts @@ -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