[Chapel Merge] Copy FLAG_C_MEMORY_ORDER_TYPE in convertTypesToExt

Branch: refs/heads/main
Revision: a6dc7aa
Author: mppf
Link: Copy FLAG_C_MEMORY_ORDER_TYPE in convertTypesToExtern by mppf · Pull Request #19853 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19853 from mppf/convertTypesToExtern-fix

Copy FLAG_C_MEMORY_ORDER_TYPE in convertTypesToExtern

To fix a problem after PR #19816 with forall unordered optimization e.g. for

  • [x] primers pass with gasnet
  • [x] full local testing
  • [x] fixes problems with ra-atomics.chpl on a Cray CS
  • [x] fixes problems in Cray XC aarch testing

Reviewed by @arezaii - thanks!

Modified Files:
M compiler/AST/build.cpp

Compare: https://github.com/chapel-lang/chapel/compare/245d003c10ac...a6dc7aa8fae7