]> gitweb.factorcode.org Git - factor.git/commitdiff
build-from-source: add rustup command and build unused libs
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 15 Dec 2023 19:41:45 +0000 (13:41 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 15 Dec 2023 19:58:46 +0000 (13:58 -0600)
extra/build-from-source/build-from-source.factor
extra/build-from-source/windows/windows.factor

index 336ecb22d0d92f35e1f68ddc5ff807628f5dd5b9..ee3cc9b1ac2372f703b0e77397b1689022121e3a 100644 (file)
@@ -245,6 +245,10 @@ ERROR: no-output-file path ;
     latest-python ;
 : latest-python3 ( -- tag ) python-tags tags>latest-python3 ;
 
+: rustup-update ( -- )
+    qw{ rustup update stable } try-process
+    qw{ rustup update nightly } try-process ;
+
 : latest-fftw ( -- path )
     "https://ftp.fftw.org/pub/fftw/" [
         http-get nip
index 4282b9180325d3493e589ea81f1be84731ca9ac4..7cd6a5dd85c86b05b85bf50ea2a2f0b42bac6b96 100644 (file)
@@ -1,11 +1,8 @@
 ! Copyright (C) 2023 Doug Coleman.
 ! See https://factorcode.org/license.txt for BSD license.
-USING: accessors ascii assocs build-from-source cli.git
-combinators.short-circuit combinators.smart continuations
-environment github html.parser html.parser.analyzer http.client
-io.directories io.encodings.string io.encodings.utf8
-io.files.temp io.launcher io.pathnames json kernel layouts math
-namespaces qw sequences sorting.human splitting windows.shell32 ;
+USING: build-from-source combinators.smart continuations
+environment http.client io.directories io.files.temp io.launcher
+io.pathnames kernel layouts qw sequences windows.shell32 ;
 IN: build-from-source.windows
 
 ! choco install -y meson StrawberryPerl nasm winflexbison3 glfw3 jom
@@ -251,7 +248,7 @@ IN: build-from-source.windows
 
 : build-ripgrep ( -- )
     "BurntSushi" "ripgrep" ripgrep-versions last [
-        qw{ cargo build --release } try-process
+        qw{ cargo +nightly build --release --features pcre2,simd-accel } try-process
         "target/release/rg.exe" copy-output-file
     ] with-github-worktree-tag ;
 
@@ -410,4 +407,9 @@ IN: build-from-source.windows
     build-fftw-dll
     build-pcre-dll ;
 
-! build-ripgrep build-duckdb
\ No newline at end of file
+: build-unused-windows-dlls ( -- )
+    dll-out-directory make-directories
+    build-grpc-dll
+    rustup-update
+    build-ripgrep
+    build-duckdb-dll ;