Browse Source

Fix trigger for NEED_PROFILE_RUNTIME to correctly support local overrides

spreis 1 year ago
parent
commit
d6b5ae15d8
1 changed files with 3 additions and 4 deletions
  1. 3 4
      build/ymake.core.conf

+ 3 - 4
build/ymake.core.conf

@@ -128,14 +128,13 @@ otherwise {
 
 # tag:profile
 NEED_PROFILE_RUNTIME=no
-when ($BUILD_TYPE == "PROFILE" || $BUILD_TYPE == "COVERAGE" || ($CLANG_COVERAGE && $CLANG_COVERAGE != "no") || $GCOV_COVERAGE == "yes") {
+when ($BUILD_TYPE == "PROFILE" || $BUILD_TYPE == "COVERAGE" || ($CLANG_COVERAGE && $CLANG_COVERAGE != "no") || $GCOV_COVERAGE == "yes" || $PGO_ADD == "yes") {
     when($CLANG && ($TARGET_PLATFORM == "LINUX" || $TARGET_PLATFORM == "DARWIN")) {
         NEED_PROFILE_RUNTIME=yes
     }
 }
-
-when ($PGO_ADD == "yes") {
-    NEED_PROFILE_RUNTIME=yes
+otherwise {
+    NEED_PROFILE_RUNTIME=no
 }
 
 when ($NEED_PROFILE_RUNTIME == "yes") {