Merge pull request #13286 from touilleMan/gnative-wrappers-msvc-flags

[GDNative] disable -fPIC flag with msvc compiler
This commit is contained in:
Thomas Herzog 2017-11-25 21:16:07 +01:00 committed by GitHub
commit 73a26b4c3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -245,7 +245,7 @@ if ARGUMENTS.get('gdnative_wrapper', False):
gd_wrapper_env = env.Clone()
gd_wrapper_env.Append(CPPPATH=['#modules/gdnative/include/'])
# I think this doesn't work on MSVC yet...
gd_wrapper_env.Append(CCFLAGS=['-fPIC'])
if not env.msvc:
gd_wrapper_env.Append(CCFLAGS=['-fPIC'])
gd_wrapper_env.Library("#bin/gdnative_wrapper_code", [gensource])