Skip to content

Commit

Permalink
Fix compile error, improve test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillof committed May 1, 2024
1 parent dd009d0 commit 40b9525
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Bindings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void Bindings::print(std::ostream& stream, const std::string& indent) const {
variable_names.emplace_back(pair.first);
}

sort(variable_names.begin(), variable_names.end());
std::sort(variable_names.begin(), variable_names.end());

for (const auto& variable: variable_names) {
stream << indent;
Expand Down
5 changes: 4 additions & 1 deletion tests/sub-output.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ file src/input <>
source input
end-of-inline-data
file build.fninja <>
sources := src/sub-output

rule a
command = a $in $out
flags = --verbose

build top-output: a src/sub-output
build top-output: a $sources

subninja src/build.fninja
end-of-inline-data
Expand All @@ -21,6 +23,7 @@ file build/build.ninja {} <>

build_directory = .
source_directory = ..
sources = src/sub-output
top_build_directory = .
top_source_directory = ..

Expand Down

0 comments on commit 40b9525

Please sign in to comment.