Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ else
endif

libfabric_path = get_option('libfabric_path')
if libfabric_path != ''
if get_option('disable_libfabric_backend')
libfabric_dep = disabler()
elif libfabric_path != ''
libfabric_lib_path = libfabric_path + '/lib'
libfabric_inc_path = libfabric_path + '/include'
# Check if path is absolute
Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ option('etcd_inc_path', type: 'string', value: '', description: 'Path to ETCD He
option('etcd_lib_path', type: 'string', value: '', description: 'Path to ETCD Libraries')
option('disable_gds_backend', type : 'boolean', value : false, description : 'disable gds backend')
option('disable_mooncake_backend', type : 'boolean', value : false, description : 'disable mooncake backend')
option('disable_libfabric_backend', type : 'boolean', value : false, description : 'disable libfabric backend')
option('install_headers', type : 'boolean', value : true, description : 'install headers')
option('gds_path', type: 'string', value: '/usr/local/cuda/', description: 'Path to GDS CuFile install')
option('cudapath_inc', type: 'string', value: '', description: 'Include path for CUDA')
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ endif
subdir('posix') # Always try to build POSIX backend, it will handle its own dependencies
subdir('obj') # Always try to build Obj backend, it will handle its own dependencies

if libfabric_dep.found()
if libfabric_dep.found() and not get_option('disable_libfabric_backend')
subdir('libfabric')
endif

Expand Down
2 changes: 1 addition & 1 deletion src/utils/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ endif
subdir('stream')
subdir('file')

if libfabric_dep.found()
if libfabric_dep.found() and not get_option('disable_libfabric_backend')
subdir('libfabric')
endif
2 changes: 1 addition & 1 deletion test/unit/utils/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.

subdir('common')
if libfabric_dep.found()
if libfabric_dep.found() and not get_option('disable_libfabric_backend')
subdir('libfabric')
endif
subdir('serdes')
Expand Down