-
Notifications
You must be signed in to change notification settings - Fork 326
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
Add support for importing symbols from static library #902
Open
testhound
wants to merge
41
commits into
numba:main
Choose a base branch
from
testhound:testhound/addArchive
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
9b891d0
Add test files to be compiled for add_archive test case
testhound ede2555
Add support for add_archive, test case and documentation
testhound ca0abbf
Fix flake8 errors
testhound 6a334a1
Fix test_add_archive to create object files and static library in a t…
testhound 88114fc
Fix formatting according to clang-format
testhound 77b6f89
Merge branch 'main' into testhound/addArchive
testhound e56a4c7
Migrate from using deprecated distutils to setuptools
testhound 9d07856
Add code to test if calls to external compiler works and potentially …
testhound e77b239
Fix flake8 errors
testhound 90043d4
Add C test files
testhound cb9eb40
Add *.c files to all uses of pacakge data
testhound 0ee2687
Incorporate upstream comments
testhound 6f2a5ef
Merge branch 'main' into testhound/addArchive
testhound 96f2766
Write out .c .files instead of storing them in the test directory
testhound f9ccb45
Add use of auto varibles and simplify some code sequences
testhound 476099a
Remove test .c files and write them to temp directory instead, use os…
testhound fcf38e6
Remove .c files from setup as they have are no longer needed for testing
testhound a159f31
Format with clang-format
testhound 18b6aba
Revert use of 'auto' as it causes an error
testhound ecfe984
Remove final use of .c test files
testhound 0db31a7
Allow test to run on Windows
testhound 5e51921
Add debug print statement
testhound 405b85c
Use CCompiler.library_filename to get platform specific name
testhound c68001b
Try instantiating unix compiler regardless of platform
testhound ab90410
Make sure function names are not mangled and use C calling convention
testhound af07004
Fix flake8 issue
testhound 22ddfc2
Test that the jit found the function address
testhound f49b699
Use try .. finally block to clean up temp directory
testhound 608b6b8
Delete jit object in case it is keeping archive open
testhound bc2023c
Delete all files created during test
testhound 281a9d3
Don't use Path
testhound 2e7d474
Return and use tmpdir
testhound c9a59e5
Close file to resolve Windows open file issue
testhound 37182a7
Remove __ from from function names and document why the testcase does…
testhound 269cd6d
Skip test on macOS and Python 3.9 due to CI issue
testhound d42498d
Add string reason to skipTest
testhound 0effd26
Don't skip Windows to expose error
testhound 28e5ef7
Add Windows specific compilation
testhound 9f53121
Convert test case to a .c file
testhound 674ca5f
Set debug=True
testhound 488dd58
Fix flake8 and remove unused funtion
testhound File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Maybe adding a
DEF
file can fix this; see https://devblogs.microsoft.com/oldnewthing/20140321-00/?p=1433There 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.
@sklam I have explored using a DEF file, however DEF files can only be provided to the "LINK" command for creating a dynamic library not the 'LIB" command that creates a static library. Additionally I have not found any way to modify the command line options to the compiler via the compile options. If I could modify the command line I would simply remove the "/GL" option.