Skip to content

Commit

Permalink
revert platform in meson.build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Mather committed Dec 4, 2023
1 parent f6738f3 commit 9f6cbd5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ name = 'stripy'

add_languages('fortran')

# platform = host_machine.system()
# if platform == 'windows'
# add_project_link_arguments('-static', language: ['fortran', 'c'])
# elif platform == 'darwin'
# add_project_link_arguments('-Wl,-rpath, "@loader_path"', language: ['fortran', 'c'])
# else
# add_project_link_arguments('-Wl,-rpath,"$ORIGIN"', language: ['fortran', 'c'])
# endif
platform = host_machine.system()
if platform == 'windows'
add_project_link_arguments('-static,-lquadmath', language: ['fortran', 'c'])
elif platform == 'darwin'
add_project_link_arguments('-Wl,-rpath, "@loader_path"', language: ['fortran', 'c'])
else
add_project_link_arguments('-Wl,-rpath,"$ORIGIN"', language: ['fortran', 'c'])
endif

py_mod = import('python')
py = py_mod.find_installation(pure: false)
Expand Down

0 comments on commit 9f6cbd5

Please sign in to comment.