update PikaStdLib, and install the rust in insatll.sh

This commit is contained in:
lyon 2022-01-13 16:28:13 +08:00
parent 3996f188ca
commit 926f31344c
4 changed files with 7 additions and 3 deletions

View File

@ -20,4 +20,4 @@ float PikaStdLib_MemChecker_getMax(PikaObj* self) {
float PikaStdLib_MemChecker_getNow(PikaObj* self) {
return pikaMemNow() / 1024.0;
}
}

View File

@ -28,4 +28,4 @@ Arg* PikaStdLib_RangeObj___next__(PikaObj* self) {
}
args_setInt(self->list, "iter_i", iter_i + foot);
return arg_setInt(NULL, "", iter_i);
}
}

View File

@ -12,4 +12,4 @@ Arg* PikaStdLib_StringObj___next__(PikaObj* self) {
iter_i = 0;
}
return arg_setNull(NULL);
}
}

View File

@ -1,3 +1,7 @@
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone https://github.com/google/benchmark.git google_benchmark && cd google_benchmark && cmake -E make_directory "build" && cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on -DCMAKE_BUILD_TYPE=Release ../ && cmake --build "build" --config Release && sudo cmake --build "build" --config Release --target install
rm google_benchmark -rf