Merge pull request #13286 from touilleMan/gnative-wrappers-msvc-flags
[GDNative] disable -fPIC flag with msvc compiler
This commit is contained in:
commit
73a26b4c3f
1 changed files with 2 additions and 2 deletions
|
@ -245,7 +245,7 @@ if ARGUMENTS.get('gdnative_wrapper', False):
|
||||||
gd_wrapper_env = env.Clone()
|
gd_wrapper_env = env.Clone()
|
||||||
gd_wrapper_env.Append(CPPPATH=['#modules/gdnative/include/'])
|
gd_wrapper_env.Append(CPPPATH=['#modules/gdnative/include/'])
|
||||||
|
|
||||||
# I think this doesn't work on MSVC yet...
|
if not env.msvc:
|
||||||
gd_wrapper_env.Append(CCFLAGS=['-fPIC'])
|
gd_wrapper_env.Append(CCFLAGS=['-fPIC'])
|
||||||
|
|
||||||
gd_wrapper_env.Library("#bin/gdnative_wrapper_code", [gensource])
|
gd_wrapper_env.Library("#bin/gdnative_wrapper_code", [gensource])
|
||||||
|
|
Loading…
Reference in a new issue