Skip to content

Commit

Permalink
driver: add --autoidx
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer committed Nov 26, 2024
1 parent 98b4aff commit 1010aab
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions kernel/driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,16 @@ int main(int argc, char **argv)
options.add_options("developer")
("X,trace", "enable tracing of core data structure changes. for debugging")
("M,randomize-pointers", "will slightly randomize allocated pointer addresses. for debugging")
<<<<<<< HEAD

Check failure on line 279 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, clang)

version control conflict marker in file

Check failure on line 279 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc)

expected primary-expression before ‘<<’ token

Check failure on line 279 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc)

expected primary-expression before ‘<<’ token

Check failure on line 279 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc)

expected primary-expression before ‘<’ token

Check failure on line 279 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc)

‘HEAD’ was not declared in this scope

Check failure on line 279 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, clang-14)

version control conflict marker in file

Check failure on line 279 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc-10)

expected primary-expression before ‘<<’ token

Check failure on line 279 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc-10)

expected primary-expression before ‘<<’ token

Check failure on line 279 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc-10)

expected primary-expression before ‘<’ token

Check failure on line 279 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc-10)

‘HEAD’ was not declared in this scope

Check failure on line 279 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-20.04, clang-10)

version control conflict marker in file

Check failure on line 279 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (macos-13, clang)

version control conflict marker in file
||||||| parent of 31d55d8c8 (driver: add --autoidx)

Check failure on line 280 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc)

expected primary-expression before ‘||’ token

Check failure on line 280 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc)

expected primary-expression before ‘||’ token

Check failure on line 280 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc)

expected primary-expression before ‘|’ token

Check failure on line 280 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc)

‘parent’ was not declared in this scope

Check failure on line 280 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc-10)

expected primary-expression before ‘||’ token

Check failure on line 280 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc-10)

expected primary-expression before ‘||’ token

Check failure on line 280 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc-10)

expected primary-expression before ‘|’ token

Check failure on line 280 in kernel/driver.cc

View workflow job for this annotation

GitHub Actions / test-compile (ubuntu-latest, gcc-10)

‘parent’ was not declared in this scope
("hash-seed", "mix up hashing values with <seed>, for extreme optimization and testing",
cxxopts::value<uint64_t>(), "<seed>")
=======
("hash-seed", "mix up hashing values with <seed>, for extreme optimization and testing",
cxxopts::value<uint64_t>(), "<seed>")
("autoidx", "start counting autoidx up from <seed>, similar effect to --hash-seed",
cxxopts::value<uint64_t>(), "<idx>")
>>>>>>> 31d55d8c8 (driver: add --autoidx)
("A,abort", "will call abort() at the end of the script. for debugging")
("x,experimental", "do not print warnings for the experimental <feature>",
cxxopts::value<std::vector<std::string>>(), "<feature>")
Expand Down Expand Up @@ -427,6 +437,10 @@ int main(int argc, char **argv)
if (result.count("infile")) {
frontend_files = result["infile"].as<std::vector<std::string>>();
}
if (result.count("autoidx")) {
int idx = result["hash-seed"].as<uint64_t>();
autoidx = idx;
}

if (log_errfile == NULL) {
log_files.push_back(stdout);
Expand Down

0 comments on commit 1010aab

Please sign in to comment.