Commit Graph

43 Commits

Author SHA1 Message Date
xuejianqing 007d26f168 fix android compile bug : uninitialized constant GCC_VERSION 2015-07-25 18:43:27 +08:00
Seba Gamboa f01704477f Add ability to change compiler versions for androideabi 2015-07-22 21:57:20 -03:00
xuejianqing 0b50b4a500 fix androideabi cross-compile error : undefined reference to 'frexpl' 2015-07-06 12:51:57 +08:00
Kouhei Sutou 058dc7bd41 Enable -Wwrite-strings by default for GCC 2015-04-18 21:43:40 +09:00
Jared Breeden f6f70c86db Fix exceptions for visualcpp 2015-03-18 20:14:54 -04:00
Masaki Muranaka 78176ee7f5 Remove redundant substitutions.
"#{MRUBY_ROOT}/include" is set in Command::Compiler#initialize .
2014-06-08 14:42:21 +09:00
cremno 6ff1b63b0d MSVC: treat implicit function decl. as error
As equivalent to GCC's `-Werror-implicit-function-declaration`.
2014-05-02 21:05:56 +02:00
take_cheeze 2063bee7cc Remove use of define_singleton_method. 2014-05-01 22:51:35 +09:00
take_cheeze b4a702f27d Implement header search for gcc and clang. 2014-05-01 16:49:54 +09:00
kyab a13775eb22 Add doubling stack extend, as fix for #2016 2014-04-29 18:42:52 +09:00
cremno ab025dc511 visualcpp toolchain: change compiler/linker flags
with these flags visualcpp should behave more like the gcc toolchain

c:
- produce debug information
- optimize for speed instead of disabling optimization
- use non-debug version of Microsoft's C library
- remove unused and unnecessary macro definitions
cxx:
- separate C and C++ (#1594)
- specify kind of exception handling (see warning C4530)
linker:
- produce debug information
- disable incremental linking and re-enable optimizations
2014-03-05 20:27:58 +01:00
take_cheeze 043e7fc6bd specialize C++ compiler in clang toolchain 2014-02-25 22:42:12 +09:00
bggd 3ff4af91a2 remove -Werror=declaration-after-statement 2014-02-24 11:08:23 +09:00
bggd 15b484df38 Add warning for C89-style variable declarations 2014-02-23 16:08:56 +09:00
Yukihiro "Matz" Matsumoto f5bd87b9e6 add CFLAGS as a fallback from CXXFLAGS; ref #1594 2013-11-25 09:51:44 +09:00
crimsonwoods 92916bb4a6 Modify referenced environment variables.
'CXX' is used instead of 'CC'.
'CXXFLAGS' is used instead of 'CFLAGS'.
2013-11-23 21:47:47 -08:00
crimsonwoods caf4d63229 Modify build script for gcc.
Newly added compile option '-std=gnu99' is not necessary for C++.
And 'g++' should be used to compile for C++ source codes, I think.
2013-11-23 19:30:52 -08:00
Per Lundberg 172cd281ba Automatically detect toolchain if it is visualcpp, and hence we drop vs2010.rake altogether - it’s no longer needed. 2013-11-22 22:17:01 +02:00
cremno 53139cbb15 GCC: add -std=gnu99 to CFLAGS
- this change prevents issues like #1539 in the future
- Clang's default is already gnu99 but GCC's is gnu89
- mruby is C99 (+ GNU exts), not C89 (+ GNU exts)
2013-11-18 21:26:50 +01:00
taku toyama 7d22c89545 add x86_64-darwin host platform. 2013-08-19 14:30:19 +09:00
crimsonwoods ccf69cde8a Improve Android NDK toolchain support.
Linux-x86_64 has not been supported now.
This commit add Linux-x86_64 platform support.
2013-07-20 14:50:29 +09:00
Robert Rowe e47e8a2512 Fix the androideabi toolchain not matching host
The included method of determining the host platform in the androideabi
would not match to windows if RUBY_PLATFORM returned mingw, wince, or
emx. As an added pre-caution, using a case statement with regexp
matching will better determine the host platform since it won't be case
sensitive and for windows is set to match more specifially than just
"win".
2013-07-08 21:16:16 -07:00
h2so5 e2cf566243 Add vs2010.rake 2013-04-13 08:53:35 +09:00
crimsonwoods bb63eb04d0 bug fix: fix "--sysroot" option and host platform detection. 2013-03-14 23:36:28 +09:00
crimsonwoods 887ebb8c94 more CFLAGS and LDFLAGS are specified automatically. 2013-03-09 19:57:34 +09:00
crimsonwoods e63425a8f9 add a new feature to select the target Android platform. 2013-03-09 19:34:22 +09:00
crimsonwoods 572acc0bea add a new feature to select the target architecture. 2013-03-09 18:55:51 +09:00
crimsonwoods fe4f45d2b6 refactoring 2013-03-08 03:21:56 +09:00
crimsonwoods 80edeaa81a bug fix: add new option '-mandroid' into CFLAGS and same options are applied into LDFLAGS. 2013-03-08 03:19:31 +09:00
crimsonwoods 51b8c8d5a8 bug fix: the argument of '--sysroot' option should be followed '=' character. 2013-03-08 02:55:13 +09:00
Yuichiro MASUI 0970ca9572 Support to build on pwd != mruby source root 2013-02-23 19:03:59 +09:00
shtirlic 1af61f2030 Add androideabi toolchain rake task (Build mruby with Android NDK) 2013-02-03 06:24:06 +04:00
mattn a2ff17b546 Change the way that the DISABLE_GEMS flag is set for vs2012. 2013-02-01 21:41:34 +09:00
Yukihiro Matz Matsumoto 24679c6dd6 resolve conflict 2013-01-30 07:33:35 +09:00
Yuichiro MASUI 39ee012ce5 Added .lib extension for library file on VS2012 2013-01-28 18:30:16 +09:00
Yuichiro MASUI 5a152c82e6 load MRUBY_CONFIG script after 'build_config.rb' 2013-01-28 18:22:11 +09:00
Yuichiro MASUI dd680b6e67 Add flags_after_libraries 2013-01-24 11:33:56 +09:00
Yuichiro MASUI b1623b9e58 merge master 2013-01-24 11:21:39 +09:00
Yuichiro MASUI f6edd3065c Add C++/Objective-C init in toolchains 2013-01-22 14:06:59 +09:00
Yuichiro MASUI a1c4992905 Added flags_before_libraries to linker 2013-01-21 22:15:15 +09:00
Cremno 94776fd8fc vs2012 toolchain: various fixes
CC: / instead of - (cosmetic change)
LD: removed default libraries and fixed options syntax
AR: added /nologo
2013-01-21 10:59:24 +01:00
Daniel Bovensiepen 46b9118562 Fix Visual Studio Toolchain 2013-01-21 14:08:30 +08:00
Yuichiro MASUI ced80d2b4b Improved build scripts and config files 2013-01-20 22:48:42 +09:00