Add minimal emscripten build support (#7954)
This commit is contained in:
@@ -43,8 +43,7 @@ def find_lib_path() -> List[str]:
|
||||
# directory here
|
||||
dll_path.append(os.path.join(curr_path, './windows/Release/'))
|
||||
dll_path = [os.path.join(p, 'xgboost.dll') for p in dll_path]
|
||||
elif sys.platform.startswith('linux') or sys.platform.startswith(
|
||||
'freebsd'):
|
||||
elif sys.platform.startswith(('linux', 'freebsd', 'emscripten')):
|
||||
dll_path = [os.path.join(p, 'libxgboost.so') for p in dll_path]
|
||||
elif sys.platform == 'darwin':
|
||||
dll_path = [os.path.join(p, 'libxgboost.dylib') for p in dll_path]
|
||||
|
||||
Reference in New Issue
Block a user