소스 검색

[GDNative] disable -fPIC flag with msvc compiler

Emmanuel Leblond 7 년 전
부모
커밋
6e3d78c94c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      modules/gdnative/SCsub

+ 2 - 2
modules/gdnative/SCsub

@@ -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])