From 32d26371627638570b74d678ab73deb7b87af8e4 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 31 Jan 2026 17:23:13 +0100 Subject: fix: Cross-compilation and style compliance Fixes seq_compiler build for Windows cross-compilation. Moves common WebGPU compatibility shims to gpu.h. Applies project-wide coding style via clang-format. Verified on both macOS (native) and Windows (cross-compile). --- tools/seq_compiler.cc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'tools') diff --git a/tools/seq_compiler.cc b/tools/seq_compiler.cc index 8da4e4e..fabb43f 100644 --- a/tools/seq_compiler.cc +++ b/tools/seq_compiler.cc @@ -78,14 +78,15 @@ int main(int argc, char *argv[]) { << ": EFFECT requires \n"; return 1; } - + // Capture remaining args std::string extra_args; std::getline(ss, extra_args); // Read rest of line - // Remove leading whitespace from getline if any (getline reads the space after priority) + // Remove leading whitespace from getline if any (getline reads the space + // after priority) extra_args = trim(extra_args); if (!extra_args.empty()) { - extra_args = ", " + extra_args; + extra_args = ", " + extra_args; } current_seq->effects.push_back( @@ -114,8 +115,9 @@ int main(int argc, char *argv[]) { out_file << " auto seq = std::make_shared();\n"; for (const auto &eff : seq.effects) { out_file << " seq->add_effect(std::make_shared<" << eff.class_name - << ">(device, queue, format" << eff.extra_args << "), " - << eff.start << "f, " << eff.end << "f, " << eff.priority << ");\n"; + << ">(device, queue, format" << eff.extra_args << "), " + << eff.start << "f, " << eff.end << "f, " << eff.priority + << ");\n"; } out_file << " main_seq.add_sequence(seq, " << seq.start_time << "f, " << seq.priority << ");\n"; @@ -123,8 +125,9 @@ int main(int argc, char *argv[]) { } out_file << "}\n"; - - std::cout << "Successfully generated timeline with " << sequences.size() << " sequences.\n"; + + std::cout << "Successfully generated timeline with " << sequences.size() + << " sequences.\n"; return 0; } -- cgit v1.2.3