diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-08-19 18:09:25 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-08-19 18:09:25 +0200 |
commit | 7436d83ef371d4fee4a66bec235e102ed80275db (patch) | |
tree | 243b416b1b6e10a43b9495121af0e57522543de0 /src/libctor.cc | |
parent | e1030dc6e69863438fe35a628bd6af9abc814b4a (diff) |
Add support for msvc tool-chain (cl.exe/link.exe and lib.exe) on windows.
Diffstat (limited to 'src/libctor.cc')
-rw-r--r-- | src/libctor.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libctor.cc b/src/libctor.cc index d188771..bfa09d6 100644 --- a/src/libctor.cc +++ b/src/libctor.cc @@ -33,6 +33,7 @@ int main(int argc, char* argv[]) settings.builddir = getConfiguration(cfg::builddir, settings.builddir); settings.parallel_processes = std::max(1u, std::thread::hardware_concurrency()) * 2 - 1; + settings.name = argv[0]; if(argc > 1 && std::string(argv[1]) == "configure") { @@ -96,6 +97,14 @@ int main(int argc, char* argv[]) return 0; }); + opt.add("name", required_argument, 'n', + "Set the output name of the ctor command to override the current one.", + [&]() { + std::this_thread::sleep_for(std::chrono::seconds(3)); + settings.name = optarg; + return 0; + }); + opt.add("add", required_argument, 'a', "Add specified file to the build configurations.", [&]() { |