mirror of
https://github.com/openharmony/resourceschedule_ffrt.git
synced 2026-08-24 18:26:04 -04:00
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:
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user