Skip to content

Commit cc1f9c7

Browse files
Prerak SinghPrerak Singh
authored andcommitted
bug fix
1 parent 8d9e45a commit cc1f9c7

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
spin build -v
155155
- name: Run tests
156156
run: |
157-
spin test -v
157+
python -m pytest --import-mode=importlib pydatastructs
158158
159159
- name: Build Documentation
160160
run: |

pydatastructs/linear_data_structures/_backend/cpp/algorithms/llvm_algorithms.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ def _ensure_target_machine():
3030
binding.initialize_all_asmprinters()
3131

3232
target = binding.Target.from_default_triple()
33-
_target_machine = target.create_target_machine(
34-
opt=3,
35-
features="+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+avx,+avx2"
36-
)
33+
_target_machine = target.create_target_machine(opt=3)
3734
except Exception as e:
3835
raise RuntimeError(f"Failed to initialize LLVM target machine: {e}")
3936

pydatastructs/linear_data_structures/meson.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ python.extension_module(
2626
'_algorithms',
2727
'_backend/cpp/algorithms/algorithms.cpp',
2828
install: true,
29-
subdir: 'pydatastructs/linear_data_structures/_backend/cpp'
29+
subdir: 'pydatastructs/linear_data_structures/_backend/cpp',
30+
cpp_args: ['-std=c++17'],
31+
override_options: ['cpp_std=c++17'],
3032
)
3133

3234
subdir('tests')

0 commit comments

Comments
 (0)