test: align unit-test C++ standard with libffrt (c++11 -> c++17)

ffrt_ut_base_cflags_cc was still pinned to -std=c++11 while the SDK
header interfaces/kits/cpp/pattern/job_utils.h uses C++17 inline
variables in fiber<...>, breaking every ohun_unittest target that
includes ffrt.h. Raise to -std=c++17 to match libffrt and the SDK
header contract.

Signed-off-by: chuchihtung <zhuzhidong2@huawei.com>
This commit is contained in:
cct
2026-07-17 18:12:30 +08:00
parent bac7c8bdee
commit 832a175a26
+1 -1
View File
@@ -25,7 +25,7 @@ ffrt_ut_base_cflags_cc = [
"-frtti",
"-Xclang",
"-fcxx-exceptions",
"-std=c++11",
"-std=c++17",
"-DFFRT_PERF_EVENT_ENABLE",
"-DFFRT_WORKER_MONITOR",
"-DFFRT_BBOX_ENABLE",