mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 15:21:21 -06:00
Fixed a regression bug of Slic3r::encode() / decode()
This commit is contained in:
parent
dcbc28fd49
commit
247070cd82
3 changed files with 12 additions and 8 deletions
|
@ -392,10 +392,11 @@ find_package(PerlEmbed REQUIRED)
|
|||
target_include_directories(XS PRIVATE ${PERL_INCLUDE_PATH})
|
||||
target_compile_options(XS PRIVATE ${PerlEmbed_CCFLAGS})
|
||||
# If the Perl is compiled with optimization off, disable optimization over the whole project.
|
||||
#if ("-Od" IN_LIST PerlEmbed_CCFLAGS OR "/Od" IN_LIST PerlEmbed_CCFLAGS)
|
||||
# set(CMAKE_CXX_FLAGS_RELEASE /Od)
|
||||
# set(CMAKE_C_FLAGS_RELEASE /Od)
|
||||
#endif()
|
||||
if (WIN32 AND ";${PerlEmbed_CCFLAGS};" MATCHES ";[-/]Od;")
|
||||
message(STATUS "Perl compiled without optimization. Disabling optimization for the Slic3r build.")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE /Od /Zi)
|
||||
set(CMAKE_C_FLAGS_RELEASE /Od /Zi)
|
||||
endif()
|
||||
# The following line will add -fPIC on Linux to make the XS.so rellocable.
|
||||
add_definitions(${PerlEmbed_CCCDLFLAGS})
|
||||
if (WIN32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue