Skip to content

Make --disable-assembly disable inline assembly#2593

Merged
albinahlback merged 2 commits intoflintlib:mainfrom
albinahlback:disable_assembly
Mar 6, 2026
Merged

Make --disable-assembly disable inline assembly#2593
albinahlback merged 2 commits intoflintlib:mainfrom
albinahlback:disable_assembly

Conversation

@albinahlback
Copy link
Collaborator

--disable-assembly did not disable inline assembly before.

@wegank can you verify whether this fixes your problem?

Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
# if defined(__clang__)
# include "longlong_asm_clang.h"
# else
# elif FLINT_WANT_ASSEMBLY
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my case, Fil-C is based on Clang, so the check doesn't work.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean that you do not want to include longlong_asm_clang.h? In that case, Fil-C is sensitive to builtins. Is this correct?

@albinahlback
Copy link
Collaborator Author

albinahlback commented Mar 6, 2026 via email

@wegank
Copy link
Contributor

wegank commented Mar 6, 2026

Fil-C was sensitive to the built-in udiv_qrnnd on FLINT git, which should have been fixed by this patch. So I've probably made a mistake; I'm recompiling FLINT to see if anything changes.

Copy link
Contributor

@wegank wegank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fil-C is now happy. Thanks a lot!

@albinahlback albinahlback merged commit a23a861 into flintlib:main Mar 6, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants