From 4178f71835f1222cf8dc98ab14a3e5aa26e23b8f Mon Sep 17 00:00:00 2001 From: Niranjan YArdi Date: Mon, 25 Mar 2024 15:27:11 -0700 Subject: [PATCH] Separate out flags for win, apple host config Change-Id: I0944883eca106cc48de8f77474be9efbb0303c77 --- starboard/build/config/BUILD.gn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/starboard/build/config/BUILD.gn b/starboard/build/config/BUILD.gn index cc14c8924225..79a31096b6ca 100644 --- a/starboard/build/config/BUILD.gn +++ b/starboard/build/config/BUILD.gn @@ -85,7 +85,11 @@ config("host") { cflags = [ "/wd4267", # Possible loss of precision from size_t to a smaller type. "/wd4715", # Not all control paths return value. + "/std:c++17", ] + } else if (is_apple) { + cflags_cc = [ "-std=gnu++17" ] + cflags_objcc = [ "-std=gnu++17" ] } } }