From 04f6cea5768cda8aabaaa732601613a7f1a65a49 Mon Sep 17 00:00:00 2001 From: Young-Flash Date: Fri, 7 Mar 2025 15:47:17 +0800 Subject: [PATCH 1/2] internal: support llvm backend --- array/moon.pkg.json | 2 +- builtin/moon.pkg.json | 6 +++--- deque/moon.pkg.json | 2 +- env/moon.pkg.json | 2 +- immut/array/moon.pkg.json | 6 ++++-- immut/list/moon.pkg.json | 5 +---- immut/priority_queue/moon.pkg.json | 2 +- immut/sorted_map/moon.pkg.json | 2 +- immut/sorted_set/moon.pkg.json | 2 +- option/moon.pkg.json | 2 +- priority_queue/moon.pkg.json | 2 +- queue/moon.pkg.json | 2 +- result/moon.pkg.json | 2 +- string/moon.pkg.json | 2 +- 14 files changed, 19 insertions(+), 20 deletions(-) diff --git a/array/moon.pkg.json b/array/moon.pkg.json index de9da766f..d36f7352e 100644 --- a/array/moon.pkg.json +++ b/array/moon.pkg.json @@ -14,6 +14,6 @@ "targets": { "array_js.mbt": ["js"], "array_nonjs.mbt": ["not", "js"], - "panic_test.mbt": ["not", "native"] + "panic_test.mbt": ["not", "native", "llvm"] } } diff --git a/builtin/moon.pkg.json b/builtin/moon.pkg.json index 12575570f..7d3ae2117 100644 --- a/builtin/moon.pkg.json +++ b/builtin/moon.pkg.json @@ -21,14 +21,14 @@ "bigint_nonjs_wbtest.mbt": ["not", "js"], "arraycore_js.mbt": ["js"], "arraycore_nonjs.mbt": ["not", "js"], - "panic_test.mbt": ["not", "native"], - "panic_wbtest.mbt": ["not", "native"], + "panic_test.mbt": ["not", "native", "llvm"], + "panic_wbtest.mbt": ["not", "native", "llvm"], "panic_nonjs_test.mbt": ["wasm", "wasm-gc"], "array_nonjs_test.mbt": ["not", "js"], "stringbuilder_buffer.mbt": ["not", "js"], "stringbuilder_concat.mbt": ["js"], "double_to_int64_js.mbt": ["js"], - "double_to_int64_native.mbt": ["native"], + "double_to_int64_native.mbt": ["native", "llvm"], "double_to_int64_wasm.mbt": ["wasm", "wasm-gc"], "double_to_int.mbt": ["not", "wasm", "wasm-gc"], "double_to_int_wasm.mbt": ["wasm", "wasm-gc"] diff --git a/deque/moon.pkg.json b/deque/moon.pkg.json index 79711a59f..f188002e5 100644 --- a/deque/moon.pkg.json +++ b/deque/moon.pkg.json @@ -4,7 +4,7 @@ "moonbitlang/core/json" ], "targets": { - "panic_test.mbt": ["not", "native"] + "panic_test.mbt": ["not", "native", "llvm"] }, "test-import": [ "moonbitlang/core/array" diff --git a/env/moon.pkg.json b/env/moon.pkg.json index fbe537e61..ba6658a8d 100644 --- a/env/moon.pkg.json +++ b/env/moon.pkg.json @@ -9,6 +9,6 @@ "targets": { "env_wasm.mbt": ["wasm", "wasm-gc"], "env_js.mbt": ["js"], - "env_native.mbt": ["native"] + "env_native.mbt": ["native", "llvm"] } } diff --git a/immut/array/moon.pkg.json b/immut/array/moon.pkg.json index 1ec2e1e1b..8bca463b2 100644 --- a/immut/array/moon.pkg.json +++ b/immut/array/moon.pkg.json @@ -10,11 +10,13 @@ "targets": { "panic_test.mbt": [ "not", - "native" + "native", + "llvm" ], "panic_wbtest.mbt": [ "not", - "native" + "native", + "llvm" ] } } diff --git a/immut/list/moon.pkg.json b/immut/list/moon.pkg.json index 4d7520acb..d9d392425 100644 --- a/immut/list/moon.pkg.json +++ b/immut/list/moon.pkg.json @@ -10,9 +10,6 @@ "moonbitlang/core/double" ], "targets": { - "panic_test.mbt": [ - "not", - "native" - ] + "panic_test.mbt": ["not", "native", "llvm"] } } \ No newline at end of file diff --git a/immut/priority_queue/moon.pkg.json b/immut/priority_queue/moon.pkg.json index f9505ef79..fab43def3 100644 --- a/immut/priority_queue/moon.pkg.json +++ b/immut/priority_queue/moon.pkg.json @@ -6,6 +6,6 @@ ], "test-import": ["moonbitlang/core/random"], "targets": { - "panic_test.mbt": ["not", "native"] + "panic_test.mbt": ["not", "native", "llvm"] } } diff --git a/immut/sorted_map/moon.pkg.json b/immut/sorted_map/moon.pkg.json index 9706588f8..1ca10f037 100644 --- a/immut/sorted_map/moon.pkg.json +++ b/immut/sorted_map/moon.pkg.json @@ -8,6 +8,6 @@ "moonbitlang/core/json" ], "targets": { - "panic_wbtest.mbt": ["not", "native"] + "panic_wbtest.mbt": ["not", "native", "llvm"] } } diff --git a/immut/sorted_set/moon.pkg.json b/immut/sorted_set/moon.pkg.json index c90fd4b74..693825fd6 100644 --- a/immut/sorted_set/moon.pkg.json +++ b/immut/sorted_set/moon.pkg.json @@ -6,6 +6,6 @@ "moonbitlang/core/json" ], "targets": { - "panic_test.mbt": ["not", "native"] + "panic_test.mbt": ["not", "native", "llvm"] } } diff --git a/option/moon.pkg.json b/option/moon.pkg.json index ede5c23b5..fcefce093 100644 --- a/option/moon.pkg.json +++ b/option/moon.pkg.json @@ -5,6 +5,6 @@ "moonbitlang/core/quickcheck/splitmix" ], "targets": { - "panic_test.mbt": ["not", "native"] + "panic_test.mbt": ["not", "native", "llvm"] } } diff --git a/priority_queue/moon.pkg.json b/priority_queue/moon.pkg.json index aeb986a9d..a59fd308e 100644 --- a/priority_queue/moon.pkg.json +++ b/priority_queue/moon.pkg.json @@ -7,6 +7,6 @@ ], "test-import": ["moonbitlang/core/random"], "targets": { - "panic_test.mbt": ["not", "native"] + "panic_test.mbt": ["not", "native", "llvm"] } } diff --git a/queue/moon.pkg.json b/queue/moon.pkg.json index 3cf0cc632..1d130ad3c 100644 --- a/queue/moon.pkg.json +++ b/queue/moon.pkg.json @@ -2,6 +2,6 @@ "import": ["moonbitlang/core/builtin", "moonbitlang/core/quickcheck"], "test-import": ["moonbitlang/core/array"], "targets": { - "panic_test.mbt": ["not", "native"] + "panic_test.mbt": ["not", "native", "llvm"] } } diff --git a/result/moon.pkg.json b/result/moon.pkg.json index a8d5ef1a0..55b7fdb4a 100644 --- a/result/moon.pkg.json +++ b/result/moon.pkg.json @@ -1,6 +1,6 @@ { "import": ["moonbitlang/core/builtin", "moonbitlang/core/quickcheck"], "targets": { - "panic_test.mbt": ["not", "native"] + "panic_test.mbt": ["not", "native", "llvm"] } } diff --git a/string/moon.pkg.json b/string/moon.pkg.json index 8323977a0..4fe660f56 100644 --- a/string/moon.pkg.json +++ b/string/moon.pkg.json @@ -2,6 +2,6 @@ "import": ["moonbitlang/core/builtin", "moonbitlang/core/char"], "test-import": ["moonbitlang/core/list", "moonbitlang/core/json"], "targets": { - "panic_test.mbt": ["not", "native"] + "panic_test.mbt": ["not", "native", "llvm"] } } From 12d7ceda3b16a47d15585a94ce487e4658887850 Mon Sep 17 00:00:00 2001 From: Young-Flash Date: Fri, 18 Apr 2025 16:38:20 +0800 Subject: [PATCH 2/2] fix: enable monotonic clock on llvm backend --- bench/moon.pkg.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/moon.pkg.json b/bench/moon.pkg.json index 485eee39d..3ae9b3588 100644 --- a/bench/moon.pkg.json +++ b/bench/moon.pkg.json @@ -2,7 +2,7 @@ "targets": { "monotonic_clock_js.mbt": ["js"], "monotonic_clock_wasm.mbt": ["wasm", "wasm-gc"], - "monotonic_clock_native.mbt": ["native"] + "monotonic_clock_native.mbt": ["native", "llvm"] }, "import": [ "moonbitlang/core/builtin",