Skip to content

Commit e535bff

Browse files
authored
Merge branch 'main' into main
2 parents 47cd35d + 1a0aea4 commit e535bff

File tree

6 files changed

+9
-14
lines changed

6 files changed

+9
-14
lines changed

Diff for: .github/odin.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/sh
22

3-
VERSION=dev-2023-03
3+
VERSION=dev-2023-04
44
FILE_NAME=odin-ubuntu-amd64-$VERSION.zip
55
sudo apt-get install -y aria2
66
mkdir /tmp/odin
77
cd /tmp/odin
88
aria2c -c -o $FILE_NAME https://github.com/odin-lang/Odin/releases/download/$VERSION/$FILE_NAME
9-
if test -d ubuntu_artifacts; then rm -r ubuntu_artifacts; fi
9+
if test -d ubuntu_artifacts; then sudo rm -rf ubuntu_artifacts; fi
1010
unzip -o $FILE_NAME
1111
if test -d ubuntu_artifacts; then ODIN_BIN_PATH=$PWD/ubuntu_artifacts/odin; else ODIN_BIN_PATH=$PWD/odin; fi
1212
sudo chmod +x $ODIN_BIN_PATH

Diff for: .github/v.sh

-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
sudo apt-get install -y libgc-dev
66
git clone https://github.com/vlang/v /tmp/vlang
77
cd /tmp/vlang
8-
pushd vlib/vweb
9-
cat vweb.v | sed "s/\bprintln('\[Vweb\] Running/eprintln('[Vweb] Running/" > temp.v && mv temp.v vweb.v
10-
popd
118
make && ./v -version
129
./v symlink
1310
v --version

Diff for: bench/algorithm/http-server/1.v

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn main() {
1313
n = strconv.atoi(os.args[1]) or { 10 }
1414
}
1515
port := int(rand.u32_in_range(20000, 50000) or { 23333 })
16-
spawn vweb.run(&App{}, port)
16+
spawn vweb.run_at(&App{}, port: port, show_startup_message: false)
1717
url := 'http://localhost:${port}/api'
1818
mut ch := chan int{cap: n}
1919
for i in 1 .. (n + 1) {

Diff for: bench/include/kotlin-jvm/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
33
import org.jetbrains.kotlin.config.KotlinCompilerVersion
44

55
plugins {
6-
val kotlinVersion = "1.8.10"
6+
val kotlinVersion = "1.8.20"
77
kotlin("jvm").version(kotlinVersion)
88
kotlin("plugin.serialization").version(kotlinVersion)
99
// kotlin("plugin.spring").version(kotlinVersion)
@@ -31,7 +31,7 @@ dependencies {
3131
// implementation("org.slf4j:slf4j-api:1.7.36")
3232
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
3333
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0")
34-
implementation("org.jetbrains.kotlinx:atomicfu:0.20.1")
34+
implementation("org.jetbrains.kotlinx:atomicfu:0.20.2")
3535
val ktor_version = "2.2.4"
3636
implementation("io.ktor:ktor-server-core:$ktor_version")
3737
// implementation("io.ktor:ktor-server-netty:$ktor_version")

Diff for: bench/include/kotlin-native/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import org.jetbrains.kotlin.config.KotlinCompilerVersion
33
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
44

55
plugins {
6-
val kotlinVersion = "1.8.10"
6+
val kotlinVersion = "1.8.20"
77
kotlin("multiplatform").version(kotlinVersion)
88
kotlin("plugin.serialization").version(kotlinVersion)
99
id("com.github.ben-manes.versions").version("0.46.0")

Diff for: bench/include/zig/build.zig

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const std = @import("std");
2-
const Builder = std.build.Builder;
32

4-
pub fn build(b: *Builder) void {
3+
pub fn build(b: *std.Build) void {
54
// Standard target options allows the person running `zig build` to choose
65
// what target to build for. Here we do not override the defaults, which
76
// means any target is allowed, and the default is native. Other options
@@ -19,10 +18,9 @@ pub fn build(b: *Builder) void {
1918
.optimize = std.builtin.Mode.ReleaseFast,
2019
});
2120
exe.linkLibC();
22-
// exe.setOutputDir("out");
23-
exe.install();
21+
b.installArtifact(exe);
2422

25-
const run_cmd = exe.run();
23+
const run_cmd = b.addRunArtifact(exe);
2624
run_cmd.step.dependOn(b.getInstallStep());
2725
if (b.args) |args| {
2826
run_cmd.addArgs(args);

0 commit comments

Comments
 (0)