Using the 1.0rc tarball, I find
./setup --extra-cxx-flags -march=haswell
results in:
usage: setup [-h] [–cc STRING] [–cxx STRING] [–fc STRING]
[–max-am-eri MAX_ANGULAR_MOMENTUM]
…
[–extra-cxx-flags STRING] [–extra-fc-flags STRING]
[–custom-cc-flags STRING] [–custom-cxx-flags STRING]
[–custom-fc-flags STRING]
[OBJDIR]
setup: error: argument --extra-cxx-flags: expected one argument
similar results are obtained from
./setup --extra-cxx-flags “-march=haswell”
some fiddling reveals that what works is
./setup --extra-cxx-flags "-march=haswell " <-- trailing space needed
similar behavior is found for --extra-math-flags, for example
./setup --extra-math-flags “-lm”
fails in the same way, but
./setup --extra-math-flags “-lgfortran -lm”
works as expected, no extra space needed.