Skip to content

Please help with .S and .inc files 😢 #60

Closed Answered by aabmets
aabmets asked this question in Q&A
Discussion options

You must be logged in to vote

Okay, I solved it myself, literally 16 minutes after posting this 😄 and
ChatGPT-4 was absolutely useless in solving this problem. I happened on
the solution by trying out random solutions in an absolute desperation.

The solution is to pass the .S files as a list[str] of absolute paths into the extra_objects kwarg
and the absolute path of the directory of the C source code into the extra_link_args kwarg
as list[str] in this format: "-I/path/to/source/directory" of the ffi.set_source() method.

The compiled code works perfectly.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by aabmets
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants