Commits

Igor Baidiuk committed bfa2455

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

Comments (0)

Files changed (2)

Binary file modified.
 
 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'
+	)