mcbuild 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mcbuild.rb +8 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 216ef3102bba0d60e284f4189d073328c36c7e29
|
|
4
|
+
data.tar.gz: a9a6d7053516121a81bc33e04f8e0a893cae07f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c968fa946d059488903915b10ed851388d7b8ee73f9b5e7a352b22c8ba84225ee000932c7d18206a0d816430ea82a84a3bcbd4d802b0f9bb2170c97eb9e422a
|
|
7
|
+
data.tar.gz: cb6c2eb9f5baccca921a0d4e743556b0fbc3407c313983cd7f6de93dfb9f31c44225dd56a680e4ba7c5b02d1f247cfa16b6fee4989adf694e8c4c2c5c2838f11
|
data/lib/mcbuild.rb
CHANGED
|
@@ -103,7 +103,7 @@ class MCBuild
|
|
|
103
103
|
end
|
|
104
104
|
|
|
105
105
|
def initialize(dir)
|
|
106
|
-
@mach =
|
|
106
|
+
@mach = ''
|
|
107
107
|
@d = remove_slash(dir)
|
|
108
108
|
|
|
109
109
|
@name = "mcdefault"
|
|
@@ -283,7 +283,13 @@ class MCBuild
|
|
|
283
283
|
|
|
284
284
|
def compile_file(file)
|
|
285
285
|
base = File.basename(file, ".c")
|
|
286
|
-
cmd = "cc
|
|
286
|
+
cmd = "cc"
|
|
287
|
+
if @mach != ''
|
|
288
|
+
cmd += " -arch #{@mach}"
|
|
289
|
+
end
|
|
290
|
+
cmd += " -std=#{@std}"
|
|
291
|
+
cmd += " #{@flags}"
|
|
292
|
+
cmd += " -c -o #{@d}/#{@outpath}/#{base}#{@oext} #{file} #{@compile_arg}"
|
|
287
293
|
puts(cmd)
|
|
288
294
|
system(cmd)
|
|
289
295
|
self
|