summaryrefslogtreecommitdiff
path: root/test/ctor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/ctor.cc')
-rw-r--r--test/ctor.cc36
1 files changed, 21 insertions, 15 deletions
diff --git a/test/ctor.cc b/test/ctor.cc
index 0c3acfd..6515c72 100644
--- a/test/ctor.cc
+++ b/test/ctor.cc
@@ -17,12 +17,14 @@ BuildConfigurations ctorTestConfigs()
"testmain.cc",
"../src/execute.cc",
},
- .cxxflags = {
- "-std=c++20", "-O3", "-s", "-Wall", "-Werror",
- "-I../src", "-Iuunit",
- "-DOUTPUT=\"execute\"",
+ .flags = {
+ .cxxflags = {
+ "-std=c++20", "-O3", "-s", "-Wall", "-Werror",
+ "-I../src", "-Iuunit",
+ "-DOUTPUT=\"execute\"",
+ },
+ .ldflags = { "-pthread" },
},
- .ldflags = { "-pthread" },
},
{
.type = TargetType::UnitTest,
@@ -32,12 +34,14 @@ BuildConfigurations ctorTestConfigs()
"testmain.cc",
},
.depends = {"libctor.a"},
- .cxxflags = {
- "-std=c++20", "-O3", "-s", "-Wall", "-Werror",
- "-I../src", "-Iuunit",
- "-DOUTPUT=\"tasks\"",
+ .flags = {
+ .cxxflags = {
+ "-std=c++20", "-O3", "-s", "-Wall", "-Werror",
+ "-I../src", "-Iuunit",
+ "-DOUTPUT=\"tasks\"",
+ },
+ .ldflags = { "-pthread" },
},
- .ldflags = { "-pthread" },
},
{
.type = TargetType::UnitTest,
@@ -47,12 +51,14 @@ BuildConfigurations ctorTestConfigs()
"testmain.cc",
},
.depends = {"libctor.a"},
- .cxxflags = {
- "-std=c++20", "-O3", "-s", "-Wall", "-Werror",
- "-I../src", "-Iuunit",
- "-DOUTPUT=\"source_type\"",
+ .flags = {
+ .cxxflags = {
+ "-std=c++20", "-O3", "-s", "-Wall", "-Werror",
+ "-I../src", "-Iuunit",
+ "-DOUTPUT=\"source_type\"",
+ },
+ .ldflags = { "-pthread" },
},
- .ldflags = { "-pthread" },
},
};
}