Ask Your Question

Revision history [back]

Include assembler file in Cython compilation

I'm just experimenting with Cython files in sage and I'm quite happy that I found out how to specify arbitrary compiler flags in my .spyx file using cargs declaration.

But there is one other thing I want to do. Beside further C source files (which I can include using the cfile declaration) I also need to include a .s file containing assembler code.

Unfortunately, I cannot simply do it the way I include C files, because it gives me error: unknown file type '.s'

Any way I can pass the .s file within my .spyx file?