Skip to content

add arch flag to scons build command - #106

Merged
vincefn merged 3 commits into
diffpy:mainfrom
clemisch:compile_arch
Aug 25, 2026
Merged

add arch flag to scons build command#106
vincefn merged 3 commits into
diffpy:mainfrom
clemisch:compile_arch

Conversation

@clemisch

Copy link
Copy Markdown
Contributor

(same as diffpy/libobjcryst#33)

This allows specifying which arch to use for compilation. native might be optimal for a local build, x86-64-v3 should be portable for non-ancient machines. Default is not to specify anything.

It's either a scons command scons arch=... or it's read from OBJCRYST_ARCH env variable, which has been handy for me if I build libobjcryst right before (which has the same PR).

clemens.schmid@esrf.fr and others added 3 commits August 25, 2026 10:39
scons arch=native        lib     # local
scons arch=x86-64-v3     lib     # portable AVX2 deploy
scons                    lib     # default: no -march (unchanged behaviour)

or via

$ export OBJCRYST_ARCH=x86-64-v3
@vincefn
vincefn merged commit 2ba95d6 into diffpy:main Aug 25, 2026
5 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