File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -736,13 +736,13 @@ def get_data_type(t):
736
736
raise NotImplementedError ("Platform not implemented" )
737
737
738
738
from numpy import get_include
739
- from distutils .sysconfig import get_python_inc
739
+ from distutils .sysconfig import get_python_inc , get_python_lib
740
740
python_path = "-I" + get_python_inc () + " "
741
741
numpy_path = "-I" + get_include ()
742
742
rt_path_01 = "-I" + get_rtlib_dir () + "/../libasr/runtime "
743
743
rt_path_02 = "-L" + get_rtlib_dir () + " -Wl,-rpath " \
744
744
+ get_rtlib_dir () + " -llpython_runtime "
745
- python_lib = "-L" "$CONDA_PREFIX/lib/ -lpython3.10 -lm"
745
+ python_lib = "-L" + get_python_lib () + "/../.. -lpython3.10 -lm"
746
746
747
747
r = os .system ("gcc -g" + gcc_flags + python_path + numpy_path +
748
748
" a.c -o lpython_jit_module.so " + rt_path_01 + rt_path_02 + python_lib )
You can’t perform that action at this time.
0 commit comments