Skip to content

Commit 6c5b04e

Browse files
committed
build: pin archloom
1 parent 1b40549 commit 6c5b04e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: ishland <[email protected]>
3+
Date: Sun, 26 Oct 2025 00:05:03 +0800
4+
Subject: [PATCH] build: pin archloom
5+
6+
7+
diff --git a/build.gradle b/build.gradle
8+
index 58a27320..9ec498ef 100644
9+
--- a/build.gradle
10+
+++ b/build.gradle
11+
@@ -1,6 +1,6 @@
12+
plugins {
13+
id 'java-library'
14+
- id 'dev.architectury.loom' version '1.11-SNAPSHOT' apply false
15+
+ id 'dev.architectury.loom' version '1.11.445' apply false
16+
id "me.champeau.jmh" version "0.7.2"
17+
id 'com.modrinth.minotaur' version '2.+' apply false
18+
id 'com.matthewprenger.cursegradle' version '1.4.0' apply false
19+
diff --git a/c2me-opts-natives-math/src/c/CMakeLists.txt b/c2me-opts-natives-math/src/c/CMakeLists.txt
20+
index 30597bea..f8170f6f 100644
21+
--- a/c2me-opts-natives-math/src/c/CMakeLists.txt
22+
+++ b/c2me-opts-natives-math/src/c/CMakeLists.txt
23+
@@ -27,6 +27,6 @@ endif()
24+
execute_process(COMMAND llvm-config --prefix OUTPUT_VARIABLE LLVM_PREFIX OUTPUT_STRIP_TRAILING_WHITESPACE)
25+
26+
target_include_directories(c2me-opts-natives-math PRIVATE includes/)
27+
-target_compile_options(c2me-opts-natives-math PRIVATE $<$<COMPILE_LANGUAGE:C>:-Wall -Wextra -Wpedantic -ffreestanding -ffile-prefix-map=${CMAKE_SOURCE_DIR}=. -fdebug-compilation-dir=. -fdebug-prefix-map=${CMAKE_SOURCE_DIR}=. -fdebug-prefix-map=${LLVM_PREFIX}=.../llvm-prefix -fno-math-errno -mprefer-vector-width=512 -ffp-contract=off -Rpass-analysis=loop-vectorize -mno-stack-arg-probe -fsave-optimization-record "SHELL:-mllvm -extra-vectorizer-passes" "SHELL:-mllvm -slp-vectorize-hor-store" "SHELL:-mllvm -slp-min-tree-size=1" "SHELL:-mllvm -slp-min-reg-size=64" "SHELL:-mllvm -slp-threshold=-1" "SHELL:-mllvm -enable-epilogue-vectorization">)
28+
+target_compile_options(c2me-opts-natives-math PRIVATE $<$<COMPILE_LANGUAGE:C>:-Wall -Wextra -Wpedantic -ffreestanding -ffile-prefix-map=${CMAKE_SOURCE_DIR}=. -fdebug-compilation-dir=. -fdebug-prefix-map=${CMAKE_SOURCE_DIR}=. -fdebug-prefix-map=${LLVM_PREFIX}=.../llvm-prefix -fno-math-errno -mprefer-vector-width=512 -ffp-contract=off -Rpass-analysis=loop-vectorize -mno-stack-arg-probe -fsave-optimization-record "SHELL:-mllvm -extra-vectorizer-passes" "SHELL:-mllvm -slp-vectorize-hor-store" "SHELL:-mllvm -slp-min-tree-size=2" "SHELL:-mllvm -slp-min-reg-size=64" "SHELL:-mllvm -slp-threshold=-1" "SHELL:-mllvm -enable-epilogue-vectorization">)
29+
target_link_options(c2me-opts-natives-math PRIVATE -v -nostdlib -fuse-ld=lld -ffile-prefix-map=${CMAKE_SOURCE_DIR}=. -fdebug-compilation-dir=. -fdebug-prefix-map=${CMAKE_SOURCE_DIR}=. -fdebug-prefix-map=${LLVM_PREFIX}=.../llvm-prefix)
30+

0 commit comments

Comments
 (0)