Skip to content

Commit 19d0917

Browse files
committed
Remove leading whitespace in libraries list
1 parent f91dbc7 commit 19d0917

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

buildscripts/kokoro/windows32.bat

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ for /f "tokens=*" %%a in ('pkg-config --libs protobuf') do (
6969
@rem Because protobuf is specified as libprotobuf and elsewhere
7070
if !lib! NEQ protobuf (
7171
set lib=!lib!.lib,
72-
set libs_list=!libs_list! !lib!
72+
if "%libs_list%"=="" (
73+
set libs_list=!lib!
74+
) else (
75+
set libs_list=!libs_list! !lib!
76+
)
7377
)
7478
)
7579
)

buildscripts/kokoro/windows64.bat

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ for /f "tokens=*" %%a in ('pkg-config --libs protobuf') do (
5353
@rem Because protobuf is specified as libprotobuf and elsewhere
5454
if !lib! NEQ protobuf (
5555
set lib=!lib!.lib,
56-
set libs_list=!libs_list! !lib!
56+
if "%libs_list%"=="" (
57+
set libs_list=!lib!
58+
) else (
59+
set libs_list=!libs_list! !lib!
60+
)
5761
)
5862
)
5963
)

0 commit comments

Comments
 (0)