Sha256: dc6833178c0dd7baddb99c82ebb6811746e408bf8a740ffb239938ae9d732c9d
Contents?: true
Size: 648 Bytes
Versions: 5
Compression:
Stored size: 648 Bytes
Contents
module Take class Project module Requirement class Library < Base default_action do |library, project| file = Tempfile.new(['test', '.c']) file.write("#include <stdlib.h>\n\nint main() " \ "{ return 0; }\n") file.flush out = Tempfile.new(['test', '']) command = Command::Runner.new(project.env[:cc], "-o {out} {in} -fPIC -l{library}") success = command.run(in: file.path, library: library, out: out.path).successful? file.close(true) out.close(true) success end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems