projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'nvme/support-sync-fua-for-iouring-v2' of https://github.com/minwooim/fio
[fio.git]
/
ci
/
actions-build.sh
diff --git
a/ci/actions-build.sh
b/ci/actions-build.sh
index 351b8d18aad07e13cbc53d0cc82937855598922a..47d4f044ecc49b7cd3efa6ae061c8a06cb9260c0 100755
(executable)
--- a/
ci/actions-build.sh
+++ b/
ci/actions-build.sh
@@
-53,12
+53,17
@@
main() {
"x86_64")
;;
esac
"x86_64")
;;
esac
+ if [ "${CI_TARGET_BUILD}" = "windows-msys2-64" ]; then
+ configure_flags+=("--disable-tls")
+ fi
;;
esac
configure_flags+=(--extra-cflags="${extra_cflags}")
./configure "${configure_flags[@]}"
;;
esac
configure_flags+=(--extra-cflags="${extra_cflags}")
./configure "${configure_flags[@]}"
- make -j 2
+ make -j "$(nproc 2>/dev/null || sysctl -n hw.logicalcpu)"
+# macOS does not have nproc, so we have to use sysctl to obtain the number of
+# logical CPUs.
}
main
}
main