diff options
| author | Stefan Boberg <[email protected]> | 2024-09-27 16:57:17 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-09-27 16:57:17 +0200 |
| commit | 0fecc2ebf0f52bd3694110dd455498642d733286 (patch) | |
| tree | 99a1d08a03d1b2acec9aa6bcc9d13ae2633822b5 /src | |
| parent | 5.5.8-pre3 (diff) | |
| download | zen-0fecc2ebf0f52bd3694110dd455498642d733286.tar.xz zen-0fecc2ebf0f52bd3694110dd455498642d733286.zip | |
work around issues compiling fmt::join call on mac (#170)
Diffstat (limited to 'src')
| -rw-r--r-- | src/zenserver/config.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/zenserver/config.cpp b/src/zenserver/config.cpp index 2023a9d51..4fc928d2c 100644 --- a/src/zenserver/config.cpp +++ b/src/zenserver/config.cpp @@ -577,7 +577,15 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions) } #endif - ServerOptions.CommandLine = fmt::format("{}", fmt::join(std::span<const char*>((const char**)argv, size_t(argc)), " ")); + for (int i = 0; i < argc; ++i) + { + if (i) + { + ServerOptions.CommandLine.push_back(' '); + } + + ServerOptions.CommandLine += argv[i]; + } // Note to those adding future options; std::filesystem::path-type options // must be read into a std::string first. As of cxxopts-3.0.0 it uses a >> |