Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
start [2023/01/14 12:10] – [How to set up your build configuration] devastart [2026/03/23 15:29] (current) – deva
Line 49: Line 49:
 ctor::build_configurations myConfigs(const ctor::settings& settings) ctor::build_configurations myConfigs(const ctor::settings& settings)
 { {
-  return +  return { 
-    { +    ctor::build_configuration{ 
-      { +      ctor::target{"hello"},  // output filename (hello or hello.exe) 
-        .target = "hello",  // output filename +      ctor::sources{ "hello.cc", "world.cc" }, // list of source files to compile 
-        .sources = { "hello.cc", "world.cc" }, // list of source files to compile +      ctor::cxx_flags{"-Wall", "-Werror"}, // c++ compilation flags 
-        // See ctor.h for more options +      // See ctor.h for more options 
-      } +    }};
-    };+
 } }
 } }