summaryrefslogtreecommitdiff
path: root/test/ctor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/ctor.cc')
-rw-r--r--test/ctor.cc78
1 files changed, 21 insertions, 57 deletions
diff --git a/test/ctor.cc b/test/ctor.cc
index 9a6ec91..9b690a2 100644
--- a/test/ctor.cc
+++ b/test/ctor.cc
@@ -19,16 +19,11 @@ BuildConfigurations ctorTestConfigs(const Settings& settings)
},
.flags = {
.cxxflags = {
- "/std:c++20", "/O2",// "/Wall",// "/WX",
- "/I../src", "/Iuunit",
- "/Isrc", "/Itest/uunit",
- "/DOUTPUT=\\\"execute\\\"",
- "/nologo",
- "/EHsc",
- "/D_X86_",
+ "-std=c++20", "-O3", "-s", "-Wall", "-Werror",
+ "-I../src", "-Iuunit",
+ "-DOUTPUT=\"execute\"",
},
- //.ldflags = { "/pthread" },
- .ldflags = { "/nologo" },
+ .ldflags = { "-pthread" },
},
},
{
@@ -38,19 +33,14 @@ BuildConfigurations ctorTestConfigs(const Settings& settings)
"tasks_test.cc",
"testmain.cc",
},
- .depends = { "libctor_nomain.lib" },
+ .depends = { "libctor_nomain.a" },
.flags = {
.cxxflags = {
- "/std:c++20", "/O2",// "/Wall",// "/WX",
- "/I../src", "/Iuunit",
- "/Isrc", "/Itest/uunit",
- "/DOUTPUT=\\\"tasks\\\"",
- "/nologo",
- "/EHsc",
- "/D_X86_",
+ "-std=c++20", "-O3", "-s", "-Wall", "-Werror",
+ "-I../src", "-Iuunit",
+ "-DOUTPUT=\"tasks\"",
},
- //.ldflags = { "/pthread" },
- .ldflags = { "/nologo" },
+ .ldflags = { "-pthread" },
},
},
{
@@ -60,19 +50,14 @@ BuildConfigurations ctorTestConfigs(const Settings& settings)
"source_type_test.cc",
"testmain.cc",
},
- .depends = { "libctor_nomain.lib" },
+ .depends = { "libctor_nomain.a" },
.flags = {
.cxxflags = {
- "/std:c++20", "/O2",// "/Wall",// "/WX",
- "/I../src", "/Iuunit",
- "/Isrc", "/Itest/uunit",
- "/DOUTPUT=\\\"source_type\\\"",
- "/nologo",
- "/EHsc",
- "/D_X86_",
+ "-std=c++20", "-O3", "-s", "-Wall", "-Werror",
+ "-I../src", "-Iuunit",
+ "-DOUTPUT=\"source_type\"",
},
- //.ldflags = { "/pthread" },
- .ldflags = { "/nologo" },
+ .ldflags = { "-pthread" },
},
},
{
@@ -86,20 +71,15 @@ BuildConfigurations ctorTestConfigs(const Settings& settings)
//.depends = { "libctor_nomain.a" },
.flags = {
.cxxflags = {
- "/std:c++20", "/O2",// "/Wall",// "/WX",
- "/I../src", "/Iuunit",
- "/Isrc", "/Itest/uunit",
- "/DOUTPUT=\\\"tools\\\"",
- "/nologo",
- "/EHsc",
- "/D_X86_",
+ "-std=c++20", "-O3", "-Wall", "-Werror",
+ "-I../src", "-Iuunit",
+ "-DOUTPUT=\"tools\"",
},
- .ldflags = { "/nologo" },
},
},
{
.type = TargetType::UnitTestLib,
- .target = "libctor_nomain.lib",
+ .target = "libctor_nomain.a",
.sources = {
"../src/build.cc",
"../src/configure.cc",
@@ -115,29 +95,13 @@ BuildConfigurations ctorTestConfigs(const Settings& settings)
"../src/tools.cc",
"../src/util.cc",
"../src/externals_manual.cc",
- "../getopt-for-windows/getopt.c",
},
.flags = {
.cxxflags = {
- "/std:c++20", "/O2",// "/Wall",// "/WX",
- "/I../src",
- "/Isrc",
- "/nologo",
- "/EHsc",
- "/D_X86_",
- "/Igetopt-for-windows",
+ "-std=c++20", "-O3", "-s", "-Wall", "-Werror",
+ "-I../src",
},
- .cflags = {
- //"/std:c++20", "/O2",// "/Wall",// "/WX",
- "/I../src",
- "/Isrc",
- "/nologo",
- "/EHsc",
- "/D_X86_",
- "/Igetopt-for-windows",
- },
- //.ldflags = { "/pthread" },
- .ldflags = { "/nologo" },
+ .ldflags = { "-pthread" },
},
},
};