From c117f6fc00350e0982b0d81ad0ef08d3668a5378 Mon Sep 17 00:00:00 2001 From: bralee Date: Mon, 8 Mar 2021 09:25:50 +0800 Subject: [PATCH] AIDEGen: Add "-fprofile-sample-use" parameter into category. "-fprofile-sample-use" parameter needs to be added to categorizeParameter function. Bug: 181817731 Test: 1. aidegen -a -i c art build bootable frameworks/base/core libnativehelper external/protobuf external/gflags external/googletest hardware/interfaces/health packages/modules/Gki system/apex system/core/fastboot system/core/fs_mgr system/core/healthd system/core/init system/core/libbinderwrapper system/core/libcutils system/core/liblog system/core/libprocessgroup system/core/libutils system/core/property_service system/core/rootdir system/core/storaged system/extras system/gsid system/hwservicemanager system/libbase system/libhidl system/libhwbinder system/libvintf system/sepolicy system/update_engine test tools 2. CLion launched without errors in 'CMake' tag. Change-Id: I4e9b0fd19fe00d23a9aa535b1ab7ade9c4a46f69 --- cc/cmakelists.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cc/cmakelists.go b/cc/cmakelists.go index d441c57fe..04536fc56 100644 --- a/cc/cmakelists.go +++ b/cc/cmakelists.go @@ -319,6 +319,9 @@ func categorizeParameter(parameter string) parameterType { if strings.HasPrefix(parameter, "-fsanitize-blacklist") { return relativeFilePathFlag } + if strings.HasPrefix(parameter, "-fprofile-sample-use") { + return relativeFilePathFlag + } return flag }