am-tests,microbench,yield-os: CMake support

This commit is contained in:
xinyangli 2024-08-13 20:24:57 +08:00
parent 02b38e7b44
commit 0b911f75ce
Signed by: xin
SSH key fingerprint: SHA256:qZ/tzd8lYRtUFSrfBDBMcUqV4GHKxqeqRA3huItgvbk
13 changed files with 496 additions and 14 deletions

View file

@ -74,7 +74,7 @@ static uint32_t score(Benchmark *b, uint64_t usec) {
}
int main(const char *args) {
const char *setting_name = args;
const char *setting_name = "test";
if (args == NULL || strcmp(args, "") == 0) {
printf("Empty mainargs. Use \"ref\" by default\n");
setting_name = "ref";