Skip to content

Commit

Permalink
Compile windows triton lib using C++ version to 17
Browse files Browse the repository at this point in the history
  • Loading branch information
cnheitman committed Oct 25, 2023
1 parent c13b262 commit 97f8543
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libtriton/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ endif()

# Workaround to allow building 'namespace linux' (defined by -std=gnu++11)
if(NOT MSVC AND (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU"))
target_compile_options(triton PRIVATE -std=c++17)
set_property(TARGET triton PROPERTY CXX_STANDARD 17)
endif()

# Enable static msvc runtime.
Expand All @@ -297,6 +297,7 @@ endif()
# Enable parallel building for msvc.
if(MSVC)
target_compile_options(triton PRIVATE /MP)
set_property(TARGET triton PROPERTY CXX_STANDARD 17)
endif()

if(WIN32 AND BUILD_SHARED_LIBS)
Expand Down

0 comments on commit 97f8543

Please sign in to comment.