[M108 Migration][Build system] Fix desktop build break 61/290361/4
authorMichal Jurkiewicz <m.jurkiewicz@samsung.com>
Thu, 4 Mar 2021 10:27:39 +0000 (11:27 +0100)
committerBot Blink <blinkbot@samsung.com>
Thu, 23 Mar 2023 19:12:58 +0000 (19:12 +0000)
Ported patch from tizen_7.0:
  https://review.tizen.org/gerrit/c/platform/framework/web/chromium-efl/+/273992

Bug: https://cam.sprc.samsung.pl/browse/VDWASM-1212
Change-Id: Ibe04d0d760152080566638d6569705c5ee960e91
Signed-off-by: Michal Jurkiewicz <m.jurkiewicz@samsung.com>
tizen_src/build/common.sh

index 4853132..2635217 100755 (executable)
@@ -188,6 +188,7 @@ function hostGnChromiumEfl() {
 }
 
 function hostNinja() {
+  local RESULT=0
   if [[ $SKIP_NINJA == 0 ]]; then
     if [[ $BUILD_CHROME == 1 ]]; then
       TARGETS="content_shell chrome"
@@ -203,8 +204,13 @@ function hostNinja() {
     export BUILD_SUBDIRECTORY=""
     BUILDDIR=${GN_GENERATOR_OUTPUT}/${BUILD_SUBDIRECTORY}
     ninja -C $BUILDDIR ${JOBS} ${TARGETS}
+    RESULT=$?
   fi
   undoReplacedGn $1
+
+  if [[ $RESULT != 0 ]]; then
+    exit $RESULT
+  fi
 }
 
 function error_report() {
@@ -386,9 +392,14 @@ function setupAndExecuteTargetBuild() {
 
   processICU initialize_icu
   gbs $CONF_FLAG build -P $PROFILE --include-all -A $ARCHITECTURE "${ARGS[@]}" $BUILD_CONF_OPTS --incremental $GBS_ROOT_OPT
+  local RESULT=$?
 
   undoReplacedGn $platform
   processICU restore_icu
+
+  if [[ $RESULT != 0 ]]; then
+    exit $RESULT
+  fi
 }
 
 function processICU() {