Skip to content

Commit

Permalink
adding compile options
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Apr 25, 2024
1 parent 83616c9 commit 38977c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ elseif(${CMAKE_Fortran_COMPILER_ID} MATCHES "PGI")
add_definitions(-DMUSICA_USING_PGI)
endif()

if(${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
add_compile_options(-Wl,-ld_classic)
endif()

# Add flags when using the ClangCL toolset
if(CMAKE_GENERATOR_TOOLSET STREQUAL "ClangCL")
add_definitions(-DMUSICA_USING_CLANGCL)
Expand Down
1 change: 1 addition & 0 deletions src/tuvx/tuvx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ TUVX *create_tuvx(const char *config_path, int *error_code)
}
catch (const std::exception &e)
{
std::cout << e.what() << std::endl;
*error_code = 2;
return nullptr;
}
Expand Down

0 comments on commit 38977c0

Please sign in to comment.