Permalink
Browse files

PkgInfo: ignore empty compiler flags. Fixes `gcc: : File not found`.

  • Loading branch information...
1 parent d1f9add commit 48a3b02b00f82509975ecf6b63a191ae31e88494 @fredreichbier fredreichbier committed Sep 9, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 source/rock/frontend/pkgconfig/PkgInfo.ooc
View
3 source/rock/frontend/pkgconfig/PkgInfo.ooc
@@ -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)
}
}

0 comments on commit 48a3b02

Please sign in to comment.