Skip to content

Commit

Permalink
Back to -O2 and develop branch
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSazonov committed Aug 24, 2024
1 parent 02e7beb commit 3168209
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pybuild.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dist-progs = 'dist/CFML/progs' # for test programs

[cfml.git]
url = 'https://code.ill.fr/scientific-software/crysfml2008.git'
branch = 'master'
branch = 'develop'

[cfml.scripts]
pyapigen = 'repo/CFML/Scripts/PythonAPI/apigen.py'
Expand Down Expand Up @@ -83,9 +83,9 @@ compilers = ['gfortran']
obj-ext = 'o'
build-shared = '{COMPILER} -shared CFML_Wraps.{OBJ_EXT} Wraps_*.{OBJ_EXT} {PATH}.{OBJ_EXT} -o {PATH}.{EXT} -L{CFML_LIB_PATH} -l{CFML_LIB_NAME} {PYTHON_LIB}'
build-exe = '{COMPILER} {OPTIONS} -o {EXE_NAME} {SOURCE_PATH} -I {CFML_INCLUDE_PATH} -L{CFML_LIB_DIR} -l{CFML_LIB_NAME}'
modes.base = '-cpp -fdec-math -fPIC -ffree-line-length-none -fno-stack-arrays -frecursive -m64'
modes.base = '-cpp -fdec-math -ffree-line-length-none -fno-stack-arrays -fPIC'
modes.debug = '-O0'
modes.release = '-O3'
modes.release = '-march=native -O2 -pipe'

[[build-configs]]
platforms = ['macos']
Expand All @@ -94,8 +94,8 @@ obj-ext = 'o'
build-shared = '{COMPILER} -Wl,-shared CFML_Wraps.{OBJ_EXT} Wraps_*.{OBJ_EXT} {PATH}.{OBJ_EXT} -o {PATH}.{EXT} -L{CFML_LIB_PATH} -l{CFML_LIB_NAME} {PYTHON_LIB}'
build-exe = '{COMPILER} {OPTIONS} -o {EXE_NAME} {SOURCE_PATH} -I {CFML_INCLUDE_PATH} -L{CFML_LIB_DIR} -l{CFML_LIB_NAME}'
modes.base = '-f2008 -fpp -PIC -quiet -w=all -colour'
modes.debug = ''
modes.release = '-O3'
modes.debug = '-O0'
modes.release = '-O2'

[[build-configs]]
platforms = ['linux', 'macos']
Expand All @@ -104,8 +104,8 @@ obj-ext = 'o'
build-shared = "{COMPILER} -shared CFML_Wraps.{OBJ_EXT} Wraps_*.{OBJ_EXT} {PATH}.{OBJ_EXT} -o {PATH}.{EXT} -L{CFML_LIB_PATH} -l{CFML_LIB_NAME} {IFPORT_LIB} {PYTHON_LIB}"
build-exe = '{COMPILER} {OPTIONS} -o {EXE_NAME} {SOURCE_PATH} -I {CFML_INCLUDE_PATH} -L{CFML_LIB_DIR} -l{CFML_LIB_NAME}'
modes.base = '-fpp -fPIC -heap-arrays -nologo'
modes.debug = '' # -g3
modes.release = '-O3' # -O3
modes.debug = '-O0' # -g3
modes.release = '-O2' # -O3

[[build-configs]]
platforms = ['windows']
Expand All @@ -114,8 +114,8 @@ obj-ext = 'obj'
build-shared = 'link CFML_Wraps.{OBJ_EXT} Wraps_*.{OBJ_EXT} {PATH}.{OBJ_EXT} /out:"{PATH}.{EXT}" /libpath:{CFML_LIB_PATH} /dll {CFML_LIB_NAME}.lib {PYTHON_LIB}'
build-exe = '{COMPILER} {OPTIONS} /exe:{EXE_NAME} {SOURCE_PATH} -I {CFML_INCLUDE_PATH} {CFML_LIB_DIR}\{CFML_LIB_NAME}.{LIB_EXT}'
modes.base = '/fpp /heap-arrays /nologo -DWIN32=ON'
modes.debug = ''
modes.release = '-O3'
modes.debug = '-O0'
modes.release = '-O2'

[build]
src-ext = 'f90'
Expand Down

0 comments on commit 3168209

Please sign in to comment.