lib/pkgforge/components/cflags.rb in pkgforge-0.6.6 vs lib/pkgforge/components/cflags.rb in pkgforge-0.6.7

- old
+ new

@@ -17,10 +17,10 @@ module DSL ## # Add cflag options to Forge DSL class Forge - Contract Maybe[String] => nil + Contract Maybe[ArrayOf[String]] => nil def cflags(value = nil) default = '-I%{dep}/usr/include -L%{dep}/usr/lib' value ||= @forge.deps.map { |x, _| (default % { dep: dep(x) }).split } @forge.cflags += value.flatten nil