From 7408afb7fb5e86882063e8bf81ecfc5720ed3414 Mon Sep 17 00:00:00 2001
From: BERTHAUT Florent <florent.berthaut@univ-lille1.fr>
Date: Fri, 8 May 2020 18:36:17 +0200
Subject: [PATCH] Added update script and fixed scons on osx

---
 SConstruct | 2 ++
 update.sh  | 6 ++++++
 2 files changed, 8 insertions(+)
 create mode 100755 update.sh

diff --git a/SConstruct b/SConstruct
index cdc0b7e..13f4981 100644
--- a/SConstruct
+++ b/SConstruct
@@ -51,9 +51,11 @@ if env['platform'] == "osx":
     cpp_library += '.osx'
     if env['target'] in ('debug', 'd'):
         env.Append(CCFLAGS=['-g', '-O2', '-arch', 'x86_64'])
+        env.Append(CXXFLAGS=['-std=c++17'])
         env.Append(LINKFLAGS=['-arch', 'x86_64'])
     else:
         env.Append(CCFLAGS=['-g', '-O3', '-arch', 'x86_64'])
+        env.Append(CXXFLAGS=['-std=c++17'])
         env.Append(LINKFLAGS=['-arch', 'x86_64'])
 
 elif env['platform'] in ('x11', 'linux'):
diff --git a/update.sh b/update.sh
new file mode 100755
index 0000000..20dc781
--- /dev/null
+++ b/update.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+git submodule update --init --recursive
+cd src/godot-cpp
+scons platform=$1 generate_bindings=yes
+cd ../..
+scons platform=$1
-- 
GitLab