-
Notifications
You must be signed in to change notification settings - Fork 84
Fix alignment of stack args on macOS #310
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
Conversation
@hajimehoshi Have you seen this Windows error before with
Appears similar to golang/go#50051 |
testdata/abitest/abi_test.c
Outdated
assert(i != 0); | ||
assert(strcmp(i, "test") == 0); | ||
return a | b | c | d | e | f | g | h; | ||
} |
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.
Add a new line.
I don't think so. Is there any other process having file handlers in the directory? |
libFileName := filepath.Join(t.TempDir(), "abitest.so")
t.Logf("Build %v", libFileName)
if err := buildSharedLib("CC", libFileName, filepath.Join("testdata", "abitest", "abi_test.c")); err != nil {
t.Fatal(err)
}
defer os.Remove(libFileName)
lib, err := load.OpenLibrary(libFileName) I guess the test itself opens the lib in the EDIT: |
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.
LGTM, thanks!
What issue is this addressing?
Closes #309
What type of issue is this addressing?
bug
What this PR does | solves
fixes issue with alignment on macOS