-
Notifications
You must be signed in to change notification settings - Fork 608
libffi.3.4.7.bcr.4 #5829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
libffi.3.4.7.bcr.4 #5829
Conversation
…pecific settings, source overlay, and presubmit tasks
|
Hello @feuerste, modules you maintain (libffi) have been updated in this PR. |
feuerste
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kekxv!
| cc_library( | ||
| name = "libffi", | ||
| visibility = ["//visibility:public"], | ||
| deps = select({ | ||
| ":windows_x86_32": [ | ||
| "@libffi-x86-32bit-msvc-binaries//:libffi", | ||
| ], | ||
| ":windows_x86_64": [ | ||
| "@libffi-x86-64bit-msvc-binaries//:libffi", | ||
| ], | ||
| "//conditions:default": [ | ||
| ":libffi-unix", | ||
| ], | ||
| }), | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about just using an alias instead?
alias(
name = "libffi",
visibility = ["//visibility:public"],
actual = select({
":windows_x86_32": [
"@libffi-x86-32bit-msvc-binaries//:libffi",
],
":windows_x86_64": [
"@libffi-x86-64bit-msvc-binaries//:libffi",
],
"//conditions:default": [
":libffi-unix",
],
}),
)
| """, | ||
| sha256 = "3f218abf32c765a6229ecc04d83d67e90266025e3f79b752358771119d02d8fb", | ||
| strip_prefix = "", | ||
| urls = ["https://github.com/libffi/libffi/releases/download/v3.5.2/libffi-3.5.2-x86-64bit-msvc-binaries.zip"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This version doesn't match the module version. Please either use the corresponding version or update the module version.
| http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
|
||
| http_archive( | ||
| name = "libffi-x86-64bit-msvc-binaries", | ||
| build_file_content = """ | ||
| cc_import( | ||
| name = "libffi", | ||
| hdrs = ["ffi.h","ffitarget.h"], | ||
| interface_library = "libffi-8.lib", | ||
| shared_library = "libffi-8.dll", | ||
| visibility = ["//visibility:public"], | ||
| ) | ||
| """, | ||
| sha256 = "3f218abf32c765a6229ecc04d83d67e90266025e3f79b752358771119d02d8fb", | ||
| strip_prefix = "", | ||
| urls = ["https://github.com/libffi/libffi/releases/download/v3.5.2/libffi-3.5.2-x86-64bit-msvc-binaries.zip"], | ||
| ) | ||
|
|
||
| http_archive( | ||
| name = "libffi-x86-32bit-msvc-binaries", | ||
| build_file_content = """ | ||
| cc_import( | ||
| name = "libffi", | ||
| hdrs = ["ffi.h","ffitarget.h"], | ||
| interface_library = "libffi-8.lib", | ||
| shared_library = "libffi-8.dll", | ||
| visibility = ["//visibility:public"], | ||
| ) | ||
| """, | ||
| sha256 = "73dd4bcdd533fb7dc28758026f369c6b914a59f4e71e87ddb66beff973a267d2", | ||
| strip_prefix = "", | ||
| urls = ["https://github.com/libffi/libffi/releases/download/v3.5.2/libffi-3.5.2-x86-32bit-msvc-binaries.zip"], | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be much preferred to build from source on Windows as well. How much effort would this be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try to make it support Windows.
add windows