Fix c++ standard from 14 to 17 for abseil-cpp version up to 20240722.0 82/317182/1 accepted/tizen_unified accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen accepted/tizen/unified/20250111.083659 accepted/tizen/unified/x/20250112.005233 accepted/tizen/unified/x/asan/20250211.003354
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 26 Dec 2024 10:36:03 +0000 (19:36 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Thu, 26 Dec 2024 10:38:53 +0000 (19:38 +0900)
It fixes the below build error.
 /usr/include/absl/strings/string_view.h:53:26:
   error: 'string_view' in namespace 'std' does not name a type
    53 | using string_view = std::string_view;
       |                          ^~~~~~~~~~~
 /usr/include/absl/strings/string_view.h:53:21:
   note: 'std::string_view' is only available from C++17 onwards
    53 | using string_view = std::string_view;

Change-Id: I65c3ae573d9510934222e3b41764dca3285cc2cd
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Makefile

index b38a618f34e82c3f5b2e850d0bcfb8d77561e0f1..f6ce3db87201d989580a100e5bc89e09dcbbae98 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ COMMON_FLAGS += -O2 -c \
        -Wl,-z,relro
 
 CXXFLAGS += $(USER_DEFINES) $(COMMON_FLAGS) $(shell pkg-config --cflags protobuf) \
-       -std=c++14 -fno-exceptions -Wno-unused -Wno-unused-parameter
+       -std=c++17 -fno-exceptions -Wno-unused -Wno-unused-parameter
 LDFLAGS += -pie -Wl,-z,noexecstack -lpthread $(shell pkg-config --libs protobuf) \
           -Wl,-z,relro