Skip to content
Snippets Groups Projects

Fix handling of architecture options in compilation flags

Merged Marco Clemencic requested to merge fix-arch-options into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -23,7 +23,7 @@ string(REPLACE "_" "-" LCG_ARCHITECTURE "${LCG_ARCHITECTURE}")
string(REPLACE "vecwid256" "prefer-vector-width=256" LCG_ARCHITECTURE "${LCG_ARCHITECTURE}")
# - extract main arch and options
if(LCG_ARCHITECTURE MATCHES "\\+")
string(REGEX MATCHALL "[^+]+" LCG_ARCHITECTURE_OPTIONS "${${_variable}_ARCH}")
string(REGEX MATCHALL "[^+]+" LCG_ARCHITECTURE_OPTIONS "${LCG_ARCHITECTURE}")
# the first chunk is the actual architecture
list(POP_FRONT LCG_ARCHITECTURE_OPTIONS LCG_ARCHITECTURE)
list(TRANSFORM LCG_ARCHITECTURE_OPTIONS PREPEND "-m")
Loading