Skip to content

Commit

Permalink
(util) Removing <format> to support github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DarcJC committed Jul 23, 2024
1 parent ee93521 commit 6015aea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ std::vector<std::string> get_parser_command_args(const std::string &cpp_version,
result.push_back("-Wno-pragma-once-outside-header");

// Set standrad version
result.push_back(std::format("-std=c++{}", cpp_version));
result.push_back(std::string("-std=c++") + cpp_version);
// Set definitions
// ZENO_REFLECT_PROCESSING will only set when parsing by this generator
result.push_back("-DZENO_REFLECT_PROCESSING=1");
result.push_back("-DWITH_REFLECT=1");
// Add include directories
for (const std::string& dir : include_dirs) {
result.push_back(
std::format("-I{}", dir)
std::string("-I") + dir
);
}
// Add pre include headers
Expand Down
1 change: 0 additions & 1 deletion src/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <iostream>
#include <optional>
#include <vector>
#include <format>
#include <string_view>
#include "metadata.hpp"
#include "inja/inja.hpp"
Expand Down

0 comments on commit 6015aea

Please sign in to comment.