Skip to content
Merged

nob #47

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/nob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:

- name: Build & Test
run: |
g++ -std=c++20 -ggdb -fsanitize=address,pointer-overflow,signed-integer-overflow,undefined -o nob nob.cpp
g++ -std=c++23 -fsanitize=address,undefined -fsanitize-address-use-after-scope -D_GLIBCXX_DEBUG -o nob nob.cpp
./nob
2 changes: 1 addition & 1 deletion nob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ template<size_t N> auto make_cmd(const std::array<std::string_view, N>& strings)
Cmd cmd;
cmd.line.reserve(strings.size());
for (size_t i = 0; i < N; i++) cmd.line.push_back(std::string{strings[i]});
INFO("make_cmd: %s", cmd_show(cmd).c_str());
return cmd;
}

template<size_t N> void make_and_run_cmd(const std::array<std::string_view, N>& strings)
{
const auto& cmd = make_cmd(strings);
INFO("make_and_run_cmd: %s", cmd_show(cmd).c_str());
cmd_run_sync(cmd);
}

Expand Down
Loading