mirror of
https://github.com/openharmony/third_party_rust_libc.git
synced 2026-07-19 15:13:40 -04:00
Try to update emsdk version
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
@@ -15,7 +15,8 @@ RUN apt-get install -y --no-install-recommends \
|
||||
libxml2 \
|
||||
python3 \
|
||||
python3-distutils \
|
||||
xz-utils
|
||||
xz-utils \
|
||||
bzip2
|
||||
|
||||
COPY emscripten.sh /
|
||||
RUN bash /emscripten.sh
|
||||
|
||||
@@ -21,7 +21,8 @@ RUN apt-get install -y --no-install-recommends \
|
||||
cmake \
|
||||
sudo \
|
||||
gdb \
|
||||
xz-utils
|
||||
xz-utils \
|
||||
bzip2
|
||||
|
||||
RUN ln -s /usr/bin/python3 /usr/bin/python & \
|
||||
ln -s /usr/bin/pip3 /usr/bin/pip
|
||||
|
||||
+5
-20
@@ -2,34 +2,19 @@
|
||||
|
||||
set -ex
|
||||
|
||||
EMSDK_VERSION=1.39.20
|
||||
|
||||
hide_output() {
|
||||
set +x
|
||||
on_err="
|
||||
echo ERROR: An error was encountered with the build.
|
||||
cat /tmp/build.log
|
||||
exit 1
|
||||
"
|
||||
trap '$on_err' ERR
|
||||
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
|
||||
PING_LOOP_PID=$!
|
||||
"${@}" &> /tmp/build.log
|
||||
trap - ERR
|
||||
kill $PING_LOOP_PID
|
||||
rm -f /tmp/build.log
|
||||
set -x
|
||||
}
|
||||
# FIXME: 3.1.21 removed a lot of header files (https://github.com/emscripten-core/emscripten/pull/17704).
|
||||
# We have to tweak libc-test (and deprecate unsupported items, maybe) when updating emsdk.
|
||||
EMSDK_VERSION=3.1.20
|
||||
|
||||
git clone https://github.com/emscripten-core/emsdk.git /emsdk-portable
|
||||
cd /emsdk-portable
|
||||
hide_output ./emsdk install "${EMSDK_VERSION}"
|
||||
./emsdk install "${EMSDK_VERSION}"
|
||||
./emsdk activate "${EMSDK_VERSION}"
|
||||
|
||||
# Compile and cache libc
|
||||
# shellcheck disable=SC1091
|
||||
source ./emsdk_env.sh
|
||||
echo "main(){}" > a.c
|
||||
echo "int main() {return 0;}" > a.c
|
||||
HOME=/emsdk-portable/ emcc a.c
|
||||
rm -f a.*
|
||||
|
||||
|
||||
+9
-1
@@ -2557,7 +2557,15 @@ fn test_emscripten(target: &str) {
|
||||
field == "_pad2" ||
|
||||
field == "ssi_syscall" ||
|
||||
field == "ssi_call_addr" ||
|
||||
field == "ssi_arch"))
|
||||
field == "ssi_arch")) ||
|
||||
// FIXME: After musl 1.1.24, it have only one field `sched_priority`,
|
||||
// while other fields become reserved.
|
||||
(struct_ == "sched_param" && [
|
||||
"sched_ss_low_priority",
|
||||
"sched_ss_repl_period",
|
||||
"sched_ss_init_budget",
|
||||
"sched_ss_max_repl",
|
||||
].contains(&field))
|
||||
});
|
||||
|
||||
// FIXME: test linux like
|
||||
|
||||
Reference in New Issue
Block a user