nongnu: wasi-libc: Update to sdk-19.

* nongnu/packages/wasm.scm (wasi-libc): Update to sdk-19.
[native-inputs]: Use clang-15.
[arguments]<#:make-flags>: Add BULK_MEMORY_SOURCES=.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
This commit is contained in:
Pierre Langlois 2022-12-24 20:37:47 +00:00 committed by Jonathan Brielmaier
parent 64fded0af6
commit 46b008f905
No known key found for this signature in database
GPG Key ID: ECFC83988B4E4B9F

View File

@ -1,5 +1,5 @@
;;; SPDX-License-Identifier: GPL-3.0-or-later ;;; SPDX-License-Identifier: GPL-3.0-or-later
;;; Copyright © 2022 Pierre Langlois <pierre.langlois@gmx.com> ;;; Copyright © 2022-2023 Pierre Langlois <pierre.langlois@gmx.com>
(define-module (nongnu packages wasm) (define-module (nongnu packages wasm)
#:use-module (guix base32) #:use-module (guix base32)
@ -16,25 +16,27 @@
#:use-module (gnu packages python)) #:use-module (gnu packages python))
(define-public wasi-libc (define-public wasi-libc
(let ((commit "ad5133410f66b93a2381db5b542aad5e0964db96")
(revision "1"))
(package (package
(name "wasi-libc") (name "wasi-libc")
(version (git-version "0.1-alpha" revision commit)) (version "sdk-19")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/WebAssembly/wasi-libc") (url "https://github.com/WebAssembly/wasi-libc")
(commit commit) (commit (string-append "wasi-" version))
(recursive? #t))) (recursive? #t)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"146jamq2q24vxjfpcwlqj84wzc80cbpbg0ns2wimyvzbanah48j6")))) "0bnpz8wk9wiic938296gxp4vz820bvpi1w41jksjzz5552hql169"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (list clang-13)) (native-inputs (list clang-15))
(arguments (arguments
(list #:tests? #f ;No test suite (list #:tests? #f ;No test suite
;; Firefox uses wasm2c to compile WebAssembly to C code, and it
;; does not support the memory.copy opcode.
;; See https://bugzilla.mozilla.org/show_bug.cgi?id=1773200#c4
#:make-flags ''("BULK_MEMORY_SOURCES=")
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(delete 'configure) (delete 'configure)
@ -62,7 +64,7 @@ other APIs.")
;; For cloudlibc. ;; For cloudlibc.
license:bsd-2 license:bsd-2
;; For wasi-libc and musl-libc. ;; For wasi-libc and musl-libc.
license:expat))))) license:expat))))
(define-public wasm32-wasi-clang-runtime (define-public wasm32-wasi-clang-runtime
(package (inherit clang-runtime-13) (package (inherit clang-runtime-13)