1. Igor Baidiuk
  2. lua.channels

Commits

Igor Baidiuk  committed bfa2455

Made boost module find boost libs properly on windows. The next thing is to connect with Lua properly

  • Participants
  • Parent commits 89644cf
  • Branches default

Comments (0)

Files changed (2)

File waf

  • Ignore whitespace
Binary file modified.

File wscript

View file
  • Ignore whitespace
 
 def configure(ctx):
 	ctx.load('compiler_cxx boost')
-	ctx.check_boost(lib='thread date_time')
+	# MS C++ doesn't enable exceptions by default, so we'll need to
+	if ctx.env['COMPILER_CXX'] == 'msvc':
+		ctx.env.CXXFLAGS += ['/EHsc']
+	
 	ctx.env.DEFINES_BOOST += ['BOOST_ALL_NO_LIB']
+	ctx.check_boost(lib='system thread date_time chrono')
 
 def build(ctx):
-	ctx.shlib(source='src/channels.cpp src/libmain.cpp src/utility.cpp', target='channels', use='BOOST')
+	ctx.shlib(
+		source='src/channels.cpp src/libmain.cpp src/utility.cpp',
+		target='channels',
+		use='BOOST'
+	)