Skip to content

Commit

Permalink
PkgInfo: ignore empty compiler flags. Fixes gcc: : File not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredreichbier committed Sep 9, 2010
1 parent d1f9add commit 48a3b02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/rock/frontend/pkgconfig/PkgInfo.ooc
Expand Up @@ -45,7 +45,8 @@ PkgInfo: class {

for(token in StringTokenizer new(string, ' ')) {
if(token startsWith?(prefix)) {
list add(token substring(prefixLength) trim(' ') trim('\n'))
add := token substring(prefixLength) trim(' ') trim('\n')
if(!add empty?()) list add(add)
}
}

Expand Down

0 comments on commit 48a3b02

Please sign in to comment.