-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwasm-build.sh
More file actions
executable file
·39 lines (37 loc) · 2.88 KB
/
wasm-build.sh
File metadata and controls
executable file
·39 lines (37 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
################################################################################
# This file is part of "Ad Astra", an embeddable scripting programming #
# language platform. #
# #
# This work is proprietary software with source-available code.. #
# #
# To copy, use, distribute, or contribute to this work, you must agree to. #
# the terms of the General License Agreement:. #
# #
# https://github.com/Eliah-Lakhin/ad-astra/blob/master/EULA.md. #
# #
# The agreement grants a Basic Commercial License, allowing you to use. #
# this work in non-commercial and limited commercial products with a total. #
# gross revenue cap. To remove this commercial limit for one of your. #
# products, you must acquire a Full Commercial License.. #
# #
# If you contribute to the source code, documentation, or related materials,. #
# you must grant me an exclusive license to these contributions.. #
# Contributions are governed by the "Contributions" section of the General. #
# License Agreement.. #
# #
# Copying the work in parts is strictly forbidden, except as permitted. #
# under the General License Agreement.. #
# #
# If you do not or cannot agree to the terms of this Agreement,. #
# do not use this work.. #
# #
# This work is provided "as is", without any warranties, express or implied,. #
# except where such disclaimers are legally invalid. #
# #
# Copyright (c) 2024 Ilya Lakhin (Илья Александрович Лахин).. #
# All rights reserved.. #
################################################################################
RUSTFLAGS="$RUSTFLAGS -Zlinker-features=-lld" cargo build --package wasm --release --target wasm32-unknown-unknown
cp ../target/wasm32-unknown-unknown/release/wasm.wasm ./wasm/wasm-module.wasm
cp ./scripts/algebra.adastra ./wasm/example.adastra