@@ -111,9 +111,9 @@ model {
111111 } else if (osdetector. os == " windows" ) {
112112 linker. args " -static" , " -lprotoc" , " -lprotobuf" , " -static-libgcc" , " -static-libstdc++" ,
113113 " -s"
114- } else if (osdetector. arch == " ppcle_64" ) {
115- linker. args " -Wl,-Bstatic" , " -lprotoc" , " -lprotobuf" , " -Wl,-Bdynamic" , " -lpthread" , " -s"
116- } else {
114+ } else if (osdetector. arch == " ppcle_64" ) {
115+ linker. args " -Wl,-Bstatic" , " -lprotoc" , " -lprotobuf" , " -Wl,-Bdynamic" , " -lpthread" , " -s"
116+ } else {
117117 // Link protoc, protobuf, libgcc and libstdc++ statically.
118118 // Link other (system) libraries dynamically.
119119 // Clang under OSX doesn't support these options.
@@ -134,9 +134,6 @@ model {
134134 String libsList = rootProject. property(' vcProtobufLibs' ) as String
135135 libsList. split(' ,' ). each() { lib -> linker. args. add(lib) }
136136 }
137- if (rootProject. hasProperty(' vcProtobufLibPaths' )) {
138- linker. args " /LIBPATH:${ rootProject.vcProtobufLibPaths} "
139- }
140137 }
141138 }
142139 }
@@ -245,12 +242,11 @@ def checkArtifacts = tasks.register("checkArtifacts") {
245242 if (ret. exitValue != 0 ) {
246243 throw new GradleException (" dumpbin exited with " + ret. exitValue)
247244 }
248- def dlls = os. toString() =~ / Image has the following dependencies:([\S\s ]*)Summary/
249- def second_dll = dlls [0 ][1 ]. trim(). split(" \\ s+" )[ 1 ]
250- if (second_dll != " KERNEL32.dll" ) {
251- throw new Exception (" unexpected dll deps: " + dlls[ 0 ][ 2 ] );
245+ def dlls_match_results = os. toString() =~ / Image has the following dependencies:([\S\s ]*)Summary/
246+ def dlls = dlls_match_results [0 ][1 ]. trim(). split(" \\ s+" ). sort()
247+ if (dlls != [ " KERNEL32.dll" , " dbghelp.dll " ] ) {
248+ throw new Exception (" unexpected dll deps: " + dlls);
252249 }
253-
254250 os. reset()
255251 ret = exec {
256252 executable ' dumpbin'
0 commit comments