From 3e5620283e1f7d965c7a6ad182f53af5cbebf244 Mon Sep 17 00:00:00 2001
From: Giuliano Zaro <3684609+GMagician@users.noreply.github.com>
Date: Wed, 7 Aug 2019 07:45:00 +0200
Subject: [PATCH] AGCM4 debug option (#14838)

---
 platformio.ini | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/platformio.ini b/platformio.ini
index 5b742faf77..32803da116 100644
--- a/platformio.ini
+++ b/platformio.ini
@@ -628,8 +628,9 @@ src_filter      = ${common.default_src_filter} +<src/HAL/HAL_LINUX>
 platform      = atmelsam
 board         = adafruit_grandcentral_m4
 framework     = arduino
-build_flags   = ${common.build_flags}
-  -Wl,-Map,$BUILD_DIR/firmware.map -Wl,--cref
+build_flags   = ${common.build_flags} -std=gnu++17
+build_unflags = -std=gnu++11
 lib_deps      = ${common.lib_deps}
 lib_ignore    = U8glib-HAL, TMC26XStepper
 src_filter    = ${common.default_src_filter} +<src/HAL/HAL_SAMD51>
+debug_tool    = jlink