diff options
Diffstat (limited to 'lang/swift510')
-rw-r--r-- | lang/swift510/Makefile | 9 | ||||
-rw-r--r-- | lang/swift510/files/start-build.sh | 5 |
2 files changed, 10 insertions, 4 deletions
diff --git a/lang/swift510/Makefile b/lang/swift510/Makefile index 72b367b418f8..711f5df85914 100644 --- a/lang/swift510/Makefile +++ b/lang/swift510/Makefile @@ -1,5 +1,6 @@ PORTNAME= swift510 DISTVERSION= 5.10.1 +PORTREVISION= 1 CATEGORIES= lang DIST_SUBDIR= ${PORTNAME} @@ -13,7 +14,7 @@ BUILD_DEPENDS= bash:shells/bash \ cmake-core>=3.19.6:devel/cmake-core LIB_DEPENDS= libcurl.so:ftp/curl \ libicuuc.so:devel/icu \ - libuuid.so:misc/e2fsprogs-libuuid \ + libuuid.so:misc/libuuid \ libxml2.so:textproc/libxml2 \ libzstd.so:archivers/zstd @@ -93,7 +94,11 @@ post-patch: do-build: @${MKDIR} ${early_stage_dir} - @${SH} ${FILESDIR}/start-build.sh ${WRKSRC} ${early_stage_dir} ${swift_install_prefix} ${WRKDIR}/clang-module-cache + ${SETENV} \ + CCACHE_WRAPPER_PATH=${CCACHE_WRAPPER_PATH} \ + MAKE_JOBS_NUMBER=${MAKE_JOBS_NUMBER} \ + ${SH} -x ${FILESDIR}/start-build.sh ${WRKSRC} ${early_stage_dir} \ + ${swift_install_prefix} ${WRKDIR}/clang-module-cache do-install: @${FIND} ${early_stage_dir}${swift_install_prefix}/bin -type f -not -name '*.py' -not -name '*.sh' -not -name '*.txt' -exec ${STRIP_CMD} '{}' ';' ; \ diff --git a/lang/swift510/files/start-build.sh b/lang/swift510/files/start-build.sh index a15ad0440540..da8e7fbbe0b2 100644 --- a/lang/swift510/files/start-build.sh +++ b/lang/swift510/files/start-build.sh @@ -12,8 +12,9 @@ cd ${swift_project_dir}/swift && utils/build-script --bootstrapping bootstrapping \ --release \ --assertions \ ---host-cc /usr/bin/clang \ ---host-cxx /usr/bin/clang++ \ +${MAKE_JOBS_NUMBER+--jobs} ${MAKE_JOBS_NUMBER} \ +--host-cc ${CCACHE_WRAPPER_PATH:-/usr/bin}/clang \ +--host-cxx ${CCACHE_WRAPPER_PATH:-/usr/bin}/clang++ \ --llvm-targets-to-build 'AArch64;X86' \ --skip-early-swift-driver \ --skip-early-swiftsyntax \ |