fix: build hang when gn tool is running 38/322338/1 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20250409.082017 accepted/tizen/unified/x/20250409.084500
authorHyunggi Lee <hyunggi.lee@samsung.com>
Tue, 8 Apr 2025 00:08:46 +0000 (09:08 +0900)
committerHyunggi Lee <hyunggi.lee@samsung.com>
Tue, 8 Apr 2025 00:09:33 +0000 (09:09 +0900)
Error log:
[   89s] + export DESTDIR=/home/abuild/rpmbuild/BUILDROOT/rive-tizen-0.2.0-1.arm
[   89s] + DESTDIR=/home/abuild/rpmbuild/BUILDROOT/rive-tizen-0.2.0-1.arm
[   89s] + ./make_skia.sh cpu tizen
[   89s] Will make CPU version, for TIZEN.
[   89s]
[   89s] Directory: /home/abuild/rpmbuild/BUILD/rive-tizen-0.2.0/submodule/skia

<stuck>
...

Fix:
gn run with single thread

Change-Id: I2c771a6329c5322e80ce08df2022892a4439c87a
Signed-off-by: Hyunggi Lee <hyunggi.lee@samsung.com>
make_skia.sh

index b46f5e364928b6d9c300250050b5a94450d410b1..c420f05872e653a49274283dd87d53184bf8a884 100755 (executable)
@@ -35,7 +35,7 @@ else
 fi
 
 # build static for host
-$gn_path gen out/static --type=static_library --args=" \
+$gn_path gen out/static --type=static_library --threads=1 --args=" \
     extra_cflags=[\"-DSK_DISABLE_SKPICTURE\", \"-DSK_DISABLE_TEXT\", \"-DRIVE_OPTIMIZED\"] \
 
     is_official_build=true \