From d6bd19b57297f184d08e867829f7231c26faaefd Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Mon, 8 Mar 2021 09:31:53 +0100 Subject: [PATCH] easy-builder: always sync before doing serious things to prevent issues happening with slow I/O on macOS errors like that: > CMakeFiles/gtktheme-mojave.dir/build.make:73: CMakeFiles/gtkglext.dir/build.make:73: CMakeFiles/gtktheme-mojave.dir/progress.make: No such file or directory > ginstall: cannot change permissions of 'netradiant/build/lib/gtkglext-1.0/include/gdkglext-config.h': No such file or directory > mkdir: netradiant/build/registry: Operation not permitted > clang: error: no such file or directory: '../../libs/libcm.a' --- easy-builder | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/easy-builder b/easy-builder index f38d0fc2..ad55492c 100755 --- a/easy-builder +++ b/easy-builder @@ -93,15 +93,18 @@ case "$(uname -s)" in esac task_enter_build_dir () { + sync mkdir -pv "${build_dir}" cd "${build_dir}" } task_fetch_submodules () { + sync "${fetch_submodules_cmd[@]}" } task_configure () { + sync cmake \ -G'Unix Makefiles' \ -D'CMAKE_INSTALL_PREFIX'="${install_dir}" \ @@ -111,14 +114,17 @@ task_configure () { } task_build_builtins () { + sync make -j"${job_count}" builtins } task_build () { + sync make -j"${job_count}" } task_install () { + sync make "${install_target}" } -- 2.39.2