Skip to content

Commit

Permalink
fix win lto
Browse files Browse the repository at this point in the history
  • Loading branch information
archibate committed Aug 8, 2021
1 parent 2bc4008 commit 142b780
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ endif()

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
if (WIN32)
set(CMAKE_DEBUG_POSTFIX "")
endif()

include_directories(include)

Expand Down
6 changes: 3 additions & 3 deletions zenqt/system/dll.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

from .. import zeno_pybind11_module as core

'''
#'''
def loadAutoloads():
print('loading addons from', lib_dir)
if not os.path.isdir(lib_dir):
Expand Down Expand Up @@ -70,8 +70,8 @@ def loadAutoloads():
else:
print('[ OK ] [{}]'.format(path))

if not os.environ.get('ZEN_NOAUTOLOAD'):
if os_name == 'win32' and not os.environ.get('ZEN_NOAUTOLOAD'):
loadAutoloads()
'''
#'''

__all__ = ['core']

0 comments on commit 142b780

Please sign in to comment.