dsisnero
c7ab4cf616
fix for quoting visualcpp
2020-04-01 12:31:48 -06:00
Dominic Sisneros
e3875ae8c5
build when directories and files have spaces
...
Modified the build to quote filenames so that it builds when files have spaces
2020-04-01 11:55:35 -06:00
Reckordp
7c85a1ff07
Increase flexibility of CrossBuild
2020-03-08 14:23:55 +07:00
take-cheeze
38fdca82c6
Use GNU extension in C++ for cygwin
2019-12-23 20:58:43 +09:00
KOBAYASHI Shuji
9f1167f7c9
Fix "undefined method `Pathname'"; fix #4895
2019-12-21 23:31:17 +09:00
KOBAYASHI Shuji
edd412966e
Remove unused code to old Visual Studio in tasks/toolchains/visualcpp.rake
2019-10-04 09:31:54 +09:00
KOBAYASHI Shuji
895ab2342e
Revert part of "Refine tasks/toolchains/(gcc|clang).rake" ( 07c6b7f0)
...
`-Wzero-length-array` is not a mandatory option, so the original is better.
2019-09-13 21:28:23 +09:00
KOBAYASHI Shuji
be76cec342
Fix warnings for invalid C++ option with enable_cxx_abi; ref #3618 , #4703
2019-09-13 17:14:37 +09:00
KOBAYASHI Shuji
07c6b7f0ab
Refine tasks/toolchains/(gcc|clang).rake
...
- Make sure to specify `-std=gnu99` for C compiler flag.
- Make sure to specify `-Wzero-length-array` for C/C++ compiler flag (Clang).
- Extract similar codes.
2019-09-12 21:45:47 +09:00
KOBAYASHI Shuji
334afb167c
Use new specifiers/modifiers of mrb_vfromat()
...
The binary sizes (gems are only `mruby-bin-mruby`) are reduced slightly in
my environment than before the introduction of new specifiers/modifiers
(5116789a ) with this change.
------------+-------------------+-------------------+--------
BINARY | BEFORE (5116789a ) | AFTER (This PR) | RATIO
------------+-------------------+-------------------+--------
mruby | 593416 bytes | 593208 bytes | -0.04%
libmruby.a | 769048 bytes | 767264 bytes | -0.23%
------------+-------------------+-------------------+--------
BTW, I accidentally changed `tasks/toolchains/visualcpp.rake` at #4613 ,
so I put it back.
2019-08-05 13:18:50 +09:00
KOBAYASHI Shuji
1e9cb74cc6
Change second argument to %l of mrb_vformat() to size_t from mrb_int
...
- `size_t` is more commonly used.
- `len` argument of `mrb_str_new()` is `size_t`.
NOTE:
The test for `%l` is temporarily disabled because adding a new type to
`mrbgems/mruby-test/vformat.c` causes an error (memory error?) on Visual
Studio 2017 in AppVeyor.
2019-08-03 19:42:22 +09:00
KOBAYASHI Shuji
79a7f18150
Avoid potential zero size array declaration; fix #4382
2019-04-16 19:56:11 +09:00
KOBAYASHI Shuji
e2bb5ce079
Refer also CXX and CC env vars as linker command in gcc and clang toolchain
...
ref #4292
2019-03-06 20:42:31 +09:00
KOBAYASHI Shuji
31f1b4a553
Remove explicit set of DISABLE_GEMS
...
`DISABLE_GEMS` is automatically set (or unset); ref #790
2019-02-23 18:29:37 +09:00
dearblue
129a804136
Append cflags for undefined macro
2018-12-22 21:58:58 +09:00
dearblue
366848996a
Clear terminated space
2018-09-07 22:32:34 +09:00
duangsuse
06428059f6
Add ~/Android/Sdk/ndk-bundle as default NDK home
2018-07-04 19:33:11 +08:00
Lothar Scholz
a9d0d90f74
Removed the Visual Studio Version Check because it does not
...
work with internationalized versions of Visual Studio. It will capture
the returned string in the local codepage encoding and make ruby exits
with an invalid UTF8 error message.
Also "Version" might be translated and not appear in the output.
2017-12-24 06:28:38 +01:00
Yukihiro "Matz" Matsumoto
6d42195fb2
Add enable_sanitizer method for clang and gcc.
...
The patch is created by @take_cheese in #3872
2017-12-11 17:14:50 +09:00
Yukihiro "Matz" Matsumoto
466a18b0d3
Remove redundant use of Object#to_s in interpolation.
2017-06-28 23:28:24 +09:00
Yukihiro "Matz" Matsumoto
1a1f834ade
Compile C files by C compiler when C++ files mixed.
...
ref #3267 #3470
By this commit, mruby do not use C++ ABI mode unless
you specify explicitly. It compiles C files by C
compilers, with C++ exception enabled when it sees
C++ files in your configured mrbgems.
I haven't tried visualcpp, so please submit an issue
if you see any problem with C++ gems on Windows.
2017-02-28 23:27:13 +09:00
Felix Jones
324231a733
Android toolchain separated target architecture compile flags (ctarget) from shared compile flags (cflags). Added support for custom mfpu and float-abi switches for the armeabi-v7a target.
2017-02-16 15:02:10 +00:00
crimsonwoods
a6b1e964a3
Modify default cflags.
2017-02-15 03:03:47 +09:00
crimsonwoods
838fa69aa3
Add '-Wl,--fix-cortex-a8' linker option for 'armeabi-v7a' architecture.
2017-02-15 00:51:10 +09:00
crimsonwoods
83a3da4456
Set default linker 'flags' and 'flags_before_libraries'.
2017-02-15 00:36:02 +09:00
Tomasz Dąbrowski
d7a6070d22
Fixed language standard mode for GCC (cannot use gnu99 with C++, c++03 used instead)
2016-11-24 09:28:00 +09:00
Tomasz Dąbrowski
44c3859a97
Fix for compiling mruby as C++ on Visual Studio toolchain
2016-11-24 09:28:00 +09:00
Felix Jones
b83bcd12df
Removed GCC TODO
2016-10-08 15:10:46 +01:00
Felix Jones
3e9fe81591
Android GCC support re-added
2016-10-08 15:09:08 +01:00
Felix Jones
5d2795c00d
Fixed mips and mips64: GCC Toolchain now points to GCC.
2016-10-08 00:23:55 +01:00
Felix Jones
5fd068eb4d
Android task: NDK default search paths now favour ndk-bundle. Added macOS NDK search paths.
2016-10-07 22:31:24 +01:00
Felix Jones
04ae2960f4
Fixed regex order falling early in arch cases, causing x86_64 and arm-v7a to use wrong target.
2016-09-15 18:14:27 +01:00
Felix Jones
18662ff576
Re-written android.rake task for latest Android NDK clang. Currently loses support for GCC and mips, mips64. Addresses issue #3208
2016-09-15 15:57:44 +01:00
ksss
451523ff02
Avoid Syntax Error on CRuby v1.8
...
CRuby v1.8 dose not support named capture
2016-04-16 22:39:09 +09:00
cremno
bfc7b2e30f
deprecate Visual Studio 2010 and 2012
2016-03-22 11:41:16 +01:00
cremno
611e99e741
remove unnecessary array/each
2016-03-22 11:38:09 +01:00
Daniel Bovensiepen
fcbaafaa2c
Add toolchain support for OpenWRT
2016-02-11 21:32:42 +08:00
asatou
d0668cf9c9
Fix build error in ruby 1.8.
...
Apply change of #2978 to :clang, :gcc, :visualcpp toolchains
2016-01-13 16:02:58 +09:00
Yukihiro "Matz" Matsumoto
622e68e535
Merge branch 'fix_androidndk_rake' of https://github.com/crimsonwoods/mruby into crimsonwoods-fix_androidndk_rake
2015-10-15 23:08:38 +09:00
Seba Gamboa
1e2381f870
Rename androidndk tolchain to just android
2015-10-12 13:41:46 -03:00
Yukihiro "Matz" Matsumoto
e48596e9e6
delete tasks/toolchains/androideabi.rake; ref #2983 #2988
...
use androidndk.rake which is better and 64bit aware
2015-10-13 00:03:58 +09:00
crimsonwoods
6b58d58a64
Fix issue: LDFLAGS is not applied correctly.
2015-10-12 23:15:32 +09:00
crimsonwoods
1a59721c69
Accoding to the implementation of 'cflags', '-no-canonical-prefixes' is isolated.
2015-10-11 17:40:26 +09:00
crimsonwoods
7b65f394e6
Remove unnecessary cases.
...
'mips64' can integrate into 'mips'.
'x86_64' is the same as 'mips64'.
2015-10-11 17:35:36 +09:00
crimsonwoods
61e4d1e6f0
Integrate common flag '-no-canonical-prefixes'.
2015-10-11 17:34:01 +09:00
crimsonwoods
a2a5c34c56
Integrate common flag.
2015-10-11 17:25:48 +09:00
crimsonwoods
ad8a895af5
Implement 'ldflags' for 'x86' architecture.
2015-10-11 17:24:47 +09:00
crimsonwoods
210f86f95c
Implement 'ldflags' for 'x86_64' architecture.
2015-10-11 17:23:39 +09:00
crimsonwoods
a106e5dc5a
Implement 'ldflags' for 'mips' architecture.
2015-10-11 17:22:39 +09:00
crimsonwoods
2482642e09
Implement 'ldflags' for 'mips64' architecture.
2015-10-11 17:21:48 +09:00