提交 40356219 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Disabled -fPIC under Windows to get rid of compiler warning

上级 daa3a359
...@@ -577,13 +577,16 @@ def gcc_module_compile_str(module_name, src_code, location=None, include_dirs=[] ...@@ -577,13 +577,16 @@ def gcc_module_compile_str(module_name, src_code, location=None, include_dirs=[]
:returns: dynamically-imported python module of the compiled code. :returns: dynamically-imported python module of the compiled code.
""" """
#TODO: don't to the dlimport in this function #TODO: Do not do the dlimport in this function
if preargs is None: if preargs is None:
preargs = [] preargs = []
else: else:
preargs = list(preargs) preargs = list(preargs)
if sys.platform != 'win32':
# Under Windows it looks like fPIC is useless. Compiler warning:
# '-fPIC ignored for target (all code is position independent)'
preargs.append('-fPIC') preargs.append('-fPIC')
no_opt = False no_opt = False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论