[ntpsec commit] Add support for detecting MSVC.

Amar Takhar amar at ntpsec.org
Fri Oct 9 18:34:57 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    f954be1e112224443d4db8866bebad64f3a17517
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=f954be1e112224443d4db8866bebad64f3a17517

Author:    Amar Takhar <verm at darkbeer.org>
Date:      Fri Oct  9 14:34:45 2015 -0400

Add support for detecting MSVC.

---

 pylib/configure.py | 3 ++-
 wscript            | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/pylib/configure.py b/pylib/configure.py
index 281eb91..f755742 100644
--- a/pylib/configure.py
+++ b/pylib/configure.py
@@ -62,7 +62,8 @@ def cmd_configure(ctx):
 	elif ctx.env.PLATFORM_TARGET == "osx":
 		ctx.env.PLATFORM_INCLUDES = ["/opt/local/include"]
 		ctx.env.PLATFORM_LIBPATH = ["/opt/local/lib"]
-
+	elif ctx.env.PLATFORM_TARGET == "win":
+		ctx.load("msvc")
 
 	# Wipe out and override flags with those from the commandline
 	for flag in ctx.env.OPT_STORE:
diff --git a/wscript b/wscript
index 81cc47f..b4cefcb 100644
--- a/wscript
+++ b/wscript
@@ -31,6 +31,7 @@ def dist(ctx):
 
 def options(ctx):
 	ctx.load("compiler_c")
+	ctx.load("msvc")
 
 	def callback_flags(option, opt, value, parser):
 		OPT_STORE.setdefault(opt, []).append(value)



More information about the vc mailing list