Skip to content

Fix ARM build and add libneo branch auto-detection#1

Draft
krystophny wants to merge 1 commit into
mainfrom
dep-audit/decompose-neo-core
Draft

Fix ARM build and add libneo branch auto-detection#1
krystophny wants to merge 1 commit into
mainfrom
dep-audit/decompose-neo-core

Conversation

@krystophny

Copy link
Copy Markdown
Member

Summary

  • Fix -march=native on ARM: use -mcpu=native which gfortran recognizes on Apple Silicon
  • Add get_branch_or_main logic for TIAGO_LIBNEO_TAG: auto-detect matching libneo branch instead of always defaulting to main

The virtual-casing targets (tiago_vacuum_cli, test_tiago_with_simsopt_grid) have a pre-existing C++ runtime link failure (___gxx_personality_v0 from Fortran linker) unrelated to this change. The main tiago_cli executable builds successfully.

Test plan

  • tiago_cli builds on Apple Silicon against decomposed libneo
  • CI on x86 (should be no-op since -mcpu=native path only activates on ARM)

Use -mcpu=native instead of -march=native on ARM targets, as
gfortran does not recognize -march=apple-m3 resolved from -march=native.

Add get_branch_or_main logic for TIAGO_LIBNEO_TAG: automatically
use the matching libneo branch if it exists, otherwise fall back
to main. This enables coordinated branch-based development across
repos (e.g. dep-audit/decompose-neo-core).

Ref: itpplasma/libneo#274
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.

1 participant