summaryrefslogtreecommitdiff
path: root/ctor.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-08-19 18:09:25 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2022-08-19 18:09:25 +0200
commit7436d83ef371d4fee4a66bec235e102ed80275db (patch)
tree243b416b1b6e10a43b9495121af0e57522543de0 /ctor.cc
parente1030dc6e69863438fe35a628bd6af9abc814b4a (diff)
Add support for msvc tool-chain (cl.exe/link.exe and lib.exe) on windows.
Diffstat (limited to 'ctor.cc')
-rw-r--r--ctor.cc29
1 files changed, 22 insertions, 7 deletions
diff --git a/ctor.cc b/ctor.cc
index 445f18a..baf22c1 100644
--- a/ctor.cc
+++ b/ctor.cc
@@ -11,7 +11,7 @@ BuildConfigurations ctorConfigs(const Settings& settings)
{
{
.type = TargetType::StaticLibrary,
- .target = "libctor.a",
+ .target = "libctor.lib",
.sources = {
"src/build.cc",
"src/configure.cc",
@@ -29,15 +29,30 @@ BuildConfigurations ctorConfigs(const Settings& settings)
"src/tools.cc",
"src/util.cc",
"src/unittest.cc",
+ "getopt-for-windows/getopt.c",
},
.flags = {
.cxxflags = {
- "-std=c++20",
- "-O3",
- "-g",
- "-Wall",
- "-Werror",
- "-Isrc",
+ "/std:c++20",
+// "/O2",
+// "/Wall",
+// "/WX",
+ "/Isrc",
+ "/nologo",
+ "/EHsc",
+ "/D_X86_",
+ "/Igetopt-for-windows",
+ },
+ .cflags = {
+ "/std:c++20",
+// "/O2",
+// "/Wall",
+// "/WX",
+ "/Isrc",
+ "/nologo",
+ "/EHsc",
+ "/D_X86_",
+ "/Igetopt-for-windows",
},
},
}