From 3f32b1cb4770ff29b2a86302912ba49fba05a4a7 Mon Sep 17 00:00:00 2001 From: Kyle Date: Fri, 8 Oct 2021 22:00:34 +0800 Subject: [PATCH] Fix insurgency linux --- AMBuilder | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/AMBuilder b/AMBuilder index cfe1843..d2385d4 100644 --- a/AMBuilder +++ b/AMBuilder @@ -28,4 +28,11 @@ for sdk_name in Extension.sdks: binary = Extension.HL2Config(project, projectName + '.ext.' + sdk.ext, sdk) + if sys.platform == 'win32': + binary.compiler.postlink += [ 'legacy_stdio_definitions.lib' ] + elif sys.platform == 'linux' or sys.platform == 'linux2': + binary.compiler.cxxflags += [ '-std=c++14' ] + binary.compiler.cxxflags += [ '-Wno-class-memaccess' ] + binary.compiler.cxxflags += [ '-include', 'mathlib/mathlib.h' ] + Extension.extensions = builder.Add(project)