Skip to content

add arch option to scons build command - #33

Merged
vincefn merged 1 commit into
diffpy:mainfrom
clemisch:compile_arch
Aug 25, 2026
Merged

add arch option to scons build command#33
vincefn merged 1 commit into
diffpy:mainfrom
clemisch:compile_arch

Conversation

@clemisch

Copy link
Copy Markdown
Contributor

This allows specifying which arch to use for compilation. native might be optiomal 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 pyobjcryst right after (which will get the same PR).

For pyobjcryst this feature might get defered for the same reasons as diffpy/pyobjcryst#104 but I'll still open it ;-)

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
@clemischclemisch changed the title add arch flag to scons build commandadd arch option to scons build commandAug 25, 2026
@vincefn
vincefn merged commit b4e799a into diffpy:mainAug 25, 2026
2 checks passed
Sign up for freeto 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

@clemisch@vincefn