Skip to content

Commit

Permalink
fix related to previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipul-Cariappa committed Aug 12, 2024
1 parent 9ea5cdc commit 839f6b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/lpython.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,7 @@ int link_executable(const std::vector<std::string> &infiles,
cmd += " -L$CONDA_PREFIX/lib -Wl,-rpath -Wl,$CONDA_PREFIX/lib -lsymengine";
}

if (compiler_options.enable_cpython) {
if (compiler_options.po.enable_cpython) {
std::string py_version = "3.10";
std::string py_flags = R"(-I $CONDA_PREFIX/include/python)" + py_version + R"( -L$CONDA_PREFIX/lib -Wl,-rpath -Wl,$CONDA_PREFIX/lib -lpython)" + py_version + R"()";
if (compiler_options.link_numpy) {
Expand Down Expand Up @@ -1594,7 +1594,7 @@ int link_executable(const std::vector<std::string> &infiles,
if (compiler_options.enable_symengine) {
cmd += " -L$CONDA_PREFIX/lib -Wl,-rpath -Wl,$CONDA_PREFIX/lib -lsymengine";
}
if (compiler_options.enable_cpython) {
if (compiler_options.po.enable_cpython) {
std::string py_version = "3.10";
std::string py_flags = R"(-I $CONDA_PREFIX/include/python)" + py_version + R"( -L$CONDA_PREFIX/lib -Wl,-rpath -Wl,$CONDA_PREFIX/lib -lpython)" + py_version + R"()";
if (compiler_options.link_numpy) {
Expand Down

0 comments on commit 839f6b9

Please sign in to comment.