This is an automated email from the ASF dual-hosted git repository.

jiayu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sedona-db.git


The following commit(s) were added to refs/heads/main by this push:
     new a93b322  chore(r/sedonadb): Set the CMAKE_TOOLCHAIN_FILE for 
aws-lc-sys (#161)
a93b322 is described below

commit a93b322f0f60e5927cb21e33a48afb130ac42c61
Author: Dewey Dunnington <[email protected]>
AuthorDate: Mon Sep 29 11:24:32 2025 -0500

    chore(r/sedonadb): Set the CMAKE_TOOLCHAIN_FILE for aws-lc-sys (#161)
---
 r/sedonadb/src/Makevars.win.in                     |  2 +-
 r/sedonadb/src/rust/aws-lc-sys-win-toolchain.cmake | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/r/sedonadb/src/Makevars.win.in b/r/sedonadb/src/Makevars.win.in
index 7a7414a..93b065d 100644
--- a/r/sedonadb/src/Makevars.win.in
+++ b/r/sedonadb/src/Makevars.win.in
@@ -61,7 +61,7 @@ $(STATLIB):
          export PKG_CONFIG_SYSROOT_DIR="$(PKG_CONFIG_SYSROOT_DIR)" && \
          export CC="$(CC)" && \
          export CFLAGS="$(CFLAGS_TWEAKED)" && \
-         export AWS_LC_SYS_CFLAGS="$(CFLAGS_TWEAKED) -O0" && \
+         export 
CMAKE_TOOLCHAIN_FILE="$(CURDIR)/rust/aws-lc-sys-win-toolchain.cmake" && \
          export RUSTFLAGS="$(RUSTFLAGS)" && \
          cargo build --target $(TARGET) --lib --profile $(PROFILE) 
$(FEATURE_FLAGS) --manifest-path ./rust/Cargo.toml --target-dir $(TARGET_DIR)
 
diff --git a/r/sedonadb/src/rust/aws-lc-sys-win-toolchain.cmake 
b/r/sedonadb/src/rust/aws-lc-sys-win-toolchain.cmake
new file mode 100644
index 0000000..db1659d
--- /dev/null
+++ b/r/sedonadb/src/rust/aws-lc-sys-win-toolchain.cmake
@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Set the maximum object path length
+set(CMAKE_OBJECT_PATH_MAX 1024)

Reply via email to