From 3d114e5506ffa3352e7b8d36cac2c6eacdd7d598 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Thu, 19 Jun 2014 20:57:54 -0400 Subject: [PATCH 1/3] Update linux platform check in KePlatform.h to be consistent with others. --- knight/shared/KePlatform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knight/shared/KePlatform.h b/knight/shared/KePlatform.h index a4a9f3cfb..220a1bfc9 100644 --- a/knight/shared/KePlatform.h +++ b/knight/shared/KePlatform.h @@ -16,7 +16,7 @@ #define KE_PLATFORM_POSIX -#if defined linux +#if defined __linux__ #define KE_PLATFORM_LINUX #elif defined __APPLE__ #define KE_PLATFORM_APPLE From 4a75be1c929867bf62384ad0ddb8e3a8336897e8 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Thu, 19 Jun 2014 20:58:26 -0400 Subject: [PATCH 2/3] Fix KE_OVERRIDE typo in amtl (already fixed upstream). --- public/amtl/am-utility.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/amtl/am-utility.h b/public/amtl/am-utility.h index 55b182ace..474c00521 100644 --- a/public/amtl/am-utility.h +++ b/public/amtl/am-utility.h @@ -71,7 +71,7 @@ ReturnAndVoid(T &t) #if defined(KE_CXX11) # define KE_DELETE = delete -# define KE_OVERRIDE = override +# define KE_OVERRIDE override #else # define KE_DELETE # define KE_OVERRIDE From 8b7ce5eed2556b3325a59df4c3f87bb9a7688d69 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Thu, 19 Jun 2014 20:59:15 -0400 Subject: [PATCH 3/3] Enable C++ support on "like" gcc builds. --- AMBuildScript | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AMBuildScript b/AMBuildScript index ba87423f9..a481451f0 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -171,6 +171,9 @@ class SMConfig(object): '-msse', '-m32', ] + cxx.cxxflags += [ + '-std=c++11', + ] have_gcc = cxx.vendor == 'gcc' have_clang = cxx.vendor == 'clang' @@ -188,6 +191,8 @@ class SMConfig(object): '-fno-threadsafe-statics', '-Wno-non-virtual-dtor', '-Wno-overloaded-virtual', + '-Wno-implicit-exception-spec-mismatch', + '-Wno-deprecated-register', ] if have_gcc: