This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 94e7896fd fix: mac can not build lua binding (#5719)
94e7896fd is described below
commit 94e7896fd5ec383f83892d0e26fa44c4aaa780c3
Author: yihong <[email protected]>
AuthorDate: Mon Mar 10 13:48:51 2025 +0800
fix: mac can not build lua binding (#5719)
Signed-off-by: yihong0618 <[email protected]>
---
bindings/lua/.cargo/config.toml | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/bindings/lua/.cargo/config.toml b/bindings/lua/.cargo/config.toml
new file mode 100644
index 000000000..125625bf3
--- /dev/null
+++ b/bindings/lua/.cargo/config.toml
@@ -0,0 +1,28 @@
+# 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.
+
+[target.x86_64-apple-darwin]
+rustflags = [
+ "-C", "link-arg=-undefined",
+ "-C", "link-arg=dynamic_lookup",
+]
+
+[target.aarch64-apple-darwin]
+rustflags = [
+ "-C", "link-arg=-undefined",
+ "-C", "link-arg=dynamic_lookup",
+]
\ No newline at end of file