-
Notifications
You must be signed in to change notification settings - Fork 2
fix: Add condition to check hostCpu and then build based on that #37
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: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,9 +62,14 @@ task libsdsDynamicLinux, "Generate bindings": | |
| task libsdsDynamicMac, "Generate bindings": | ||
| let outLibNameAndExt = "libsds.dylib" | ||
| let name = "libsds" | ||
|
|
||
| let arch = hostCPU | ||
| let archFlags = (if arch == "arm64": "--cpu:arm64 --passC:\"-arch arm64\" --passL:\"-arch arm64\"" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had to add the This made it work for me:
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey status-im/status-app#19537 this change from Sid seems to solve the issue on macOS for me There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess the tricky question is why this PR is fixing the sds build? And why isn't it working out of the box without forcing the
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes exactly, there is an issue with this standalone library too, just building it on its own, complies it for x86_64, even on arm systems |
||
| else: "--cpu:amd64 --passC:\"-arch x86_64\" --passL:\"-arch x86_64\"") | ||
|
|
||
| buildLibrary outLibNameAndExt, | ||
| name, "library/", | ||
| """-d:chronicles_line_numbers --warning:Deprecated:off --warning:UnusedImport:on -d:chronicles_log_level=TRACE """, | ||
| archFlags & " -d:chronicles_line_numbers --warning:Deprecated:off --warning:UnusedImport:on -d:chronicles_log_level=TRACE", | ||
| "dynamic" | ||
|
|
||
| task libsdsStaticWindows, "Generate bindings": | ||
|
|
||
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.
Are we expecting this attribute to be adapted manually?