mcbuild 0.0.53 → 0.0.54
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 +5 -0
- 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: bad91ce4dfd45672480c48bb7aa1ff9c0738a883
|
|
4
|
+
data.tar.gz: c93818574f4ce4b6c612df098875f4dc387de974
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56e4abdaf1ec2d4372d6f4376afd41a0ef481284dd5fdcb5e0136aa57754e71f7ec90552123a5adbcd3b6f41b46e298f96ef43ac40ef079883eb883722586212
|
|
7
|
+
data.tar.gz: a2fe565332d315e99c2947f50e0002304eaaea88baf3dad4c16271cb183baa5c1a7448ca9cd40c7a4f170168926489d5294d22f4131e170d638ff3dd87dc171c
|
data/lib/mcbuild.rb
CHANGED
|
@@ -245,6 +245,7 @@ class MCBuild
|
|
|
245
245
|
|
|
246
246
|
def add_flag(flag)
|
|
247
247
|
@flags += ' ' + flag
|
|
248
|
+
self
|
|
248
249
|
end
|
|
249
250
|
|
|
250
251
|
def set_outpath(outpath)
|
|
@@ -259,22 +260,26 @@ class MCBuild
|
|
|
259
260
|
|
|
260
261
|
def disable_warning(warning)
|
|
261
262
|
@flags += ' -Wno-' + warning
|
|
263
|
+
self
|
|
262
264
|
end
|
|
263
265
|
|
|
264
266
|
def disable_warnings(warnings)
|
|
265
267
|
warnings.each { |warn|
|
|
266
268
|
self.disable_warning(warn)
|
|
267
269
|
}
|
|
270
|
+
self
|
|
268
271
|
end
|
|
269
272
|
|
|
270
273
|
def enable_warning(warning)
|
|
271
274
|
@flags += ' -W' + warning
|
|
275
|
+
self
|
|
272
276
|
end
|
|
273
277
|
|
|
274
278
|
def enable_warnings(warnings)
|
|
275
279
|
warnings.each { |warn|
|
|
276
280
|
self.enable_warning(warn)
|
|
277
281
|
}
|
|
282
|
+
self
|
|
278
283
|
end
|
|
279
284
|
|
|
280
285
|
def info
|