Commit Graph

178 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto 630a152093 Merge pull request #1753 from take-cheeze/assert_rb
Compile assert.rb once.
2014-02-27 02:04:45 +09:00
take_cheeze 7201404ee0 compile assert.rb once 2014-02-26 22:01:31 +09:00
Yukihiro "Matz" Matsumoto 8c949eeef0 Merge pull request #1747 from cubicdaiya/issues/use_mrb_intern_lit
use mrb_intern_lit instead of mrb_intern_cstr for C string literals
2014-02-26 21:56:59 +09:00
cubicdaiya 6db2e080f0 use mrb_intern_lit instead of mrb_intern_cstr for C string literals 2014-02-26 13:48:11 +09:00
take_cheeze 043e7fc6bd specialize C++ compiler in clang toolchain 2014-02-25 22:42:12 +09:00
Yukihiro "Matz" Matsumoto de0af73c24 Merge pull request #1732 from cho45/depend-build-config
Always include build_config.rb to compile dependency.
2014-02-25 02:20:13 +09:00
cho45 03b1b62bde Always include build_config.rb to compile dependency.
build_config.rb modifies `cc.defines` (eg. `DISABLE_GEMS`) so files depending on such flags should be rebuilt.

Ref. (Failing scenario): https://gist.github.com/cho45/9181191
2014-02-24 12:01:54 +09:00
bggd 3ff4af91a2 remove -Werror=declaration-after-statement 2014-02-24 11:08:23 +09:00
Yukihiro "Matz" Matsumoto 109f675f44 Merge pull request #1727 from bggd/patch-2
Add warning for C89-style variable declarations
2014-02-24 01:41:27 +09:00
take_cheeze 9059b9a354 support custom build_dir in CrossBuild 2014-02-23 20:50:51 +09:00
take_cheeze dd68ea9799 make mruby build directory customizable 2014-02-23 20:35:06 +09:00
bggd 15b484df38 Add warning for C89-style variable declarations 2014-02-23 16:08:56 +09:00
Yukihiro "Matz" Matsumoto d7960bf2a9 resolve conflict in travis_config.rb 2014-02-10 09:50:32 +09:00
cremno aa655b9ee1 remove superfluous includes
- reduce compile time by a little bit (full-core: ~0.7s for me)
- thanks to 'include-what-you-use' for some help
- include Standard C header files before any other (coding style)
2014-01-07 17:56:30 +01:00
Yukihiro "Matz" Matsumoto 3c7ab32e39 Merge pull request #1643 from take-cheeze/remove_unnecessary_depedency
Reduce unnecessary mrbgems full test rebuild.
2014-01-05 15:11:59 -08:00
cremno 4804b3f7dd fix some warnings emitted by 'ruby -w'
- File.exists? is deprecated since 2.1.0
- tasks/mruby_build_commands.rake:268: ambiguous argument
2014-01-02 01:09:03 +01:00
take_cheeze c8e8f3e446 remove unnecessary depedency in test build 2013-12-27 03:44:02 +09:00
take_cheeze 9b4b2e7c52 use mrbc of current build in non cross build 2013-11-26 11:33:25 +09:00
Yukihiro "Matz" Matsumoto f5bd87b9e6 add CFLAGS as a fallback from CXXFLAGS; ref #1594 2013-11-25 09:51:44 +09:00
Yukihiro "Matz" Matsumoto 33698d7349 Merge branch 'modify_toolchains_gcc' of https://github.com/crimsonwoods/mruby into crimsonwoods-modify_toolchains_gcc 2013-11-25 09:50:33 +09:00
take_cheeze f07ba44c69 add enable_debug method to MRuby::Build and build debug version in travis-ci 2013-11-24 20:38:47 +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
fleuria 06914f607c add conf.enable_bintest and run_bintest 2013-11-16 14:26:38 +08:00
William Light 72d6db8bc4 Fix for caller_dir relative gems 2013-10-01 21:27:34 +02:00
William Light 7c3f06ddd8 Implement gembox-relative gemdir paths
In the case where a relative path is specified to a gembox from
build_config.rb, it was previously tricky to specify relative gem paths
from inside that gembox.

For example, consider a project in which mruby is checked out as a
submodule in the project root:

	+- project_root
	   |
	   +- mruby/
	   |  |
	   |  +- build_config.rb
	   |  |
	   |  +- ...
	   |
	   +- my_gembox/
	      |
	      +- my_gembox.gembox
	      |
	      +- my_gem/
	         |
	         +- mrbgem.rake
	         |
	         +- ...

If build_config.rb refers to my_gembox with a relative path, it's
difficult for my_gembox to then refer to my_gem. With this proposed
change, my_gembox.gembox can look like this:

	MRuby::GemBox.new do |conf|
	  conf.gem "my_gem"
	end
2013-10-01 20:21:46 +02:00
Yuichi Nishiwaki 0e4a7b2a03 eliminate use of traditional intern API (mrb_intern()) completely 2013-09-23 19:36:50 -07:00
Yukihiro "Matz" Matsumoto 975d670ab7 Merge pull request #1490 from take-cheeze/cxx_extension
support file extension .cpp/.cxx in mrbgem and tool
2013-08-26 04:16:13 -07:00
take_cheeze b6ab216f97 support file extension .cpp/.cxx in mrbgem and tool 2013-08-26 17:56:49 +09:00
taku toyama 7d22c89545 add x86_64-darwin host platform. 2013-08-19 14:30:19 +09:00
Ryan Scott 981b408e01 Added support for custom gem clone directories when using git 2013-08-04 00:33:49 +10:00
Yukihiro "Matz" Matsumoto 961cd408a8 replace "if not" to "unless" 2013-07-27 14:21:09 +09:00
fleuria f4ae432497 if mrbc.run fail, abort rake 2013-07-25 03:47:39 +08:00
kyab 494880fa10 Fix mrbc error for space included path 2013-07-24 18:37:00 +09:00
Tomoyuki Sahara e8df8dcae6 display multiple authors better.
Before:
Copyright (c) 2013 ["a", "b"]

After:
Copyright (c) 2013 a, b
2013-07-23 09:53:39 +09:00
Yukihiro "Matz" Matsumoto 9ddb2253d0 Merge pull request #1395 from carsonmcdonald/fixdepcheck
Fail if dependency isn't found
2013-07-21 17:06:02 -07:00
Carson McDonald 45cba2e27f Fail if dependency isn't found 2013-07-20 22:22:27 -04: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
Xuejie "Rafael" Xiao 122770d17f Allow programmers to specify build path manually 2013-07-15 11:43:19 +08: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
kyab 8eab806da8 Add --pull_gems option to minirake 2013-07-04 22:09:05 +09:00
kyab cf4655683e Remove extra separator in compile command 2013-06-15 01:40:04 +09:00
Yukihiro "Matz" Matsumoto 6557ee938a mruby error messages should be directed to stderr 2013-05-26 02:13:02 +09:00
Yukihiro "Matz" Matsumoto 95fb1fd809 mrbc to take multiple files, preserving debug information if -g given; close #1243 2013-05-14 23:39:56 +09:00
Carson McDonald 7df8e6936e Allow mrbc command options to be changed 2013-05-13 10:16:31 -04:00
Yukihiro "Matz" Matsumoto 0b858ab801 show a backtrace when when an error occurs on gem load; close #1243 2013-05-13 10:41:59 +09:00
Carson McDonald 37258d4d7e Change alghorithm to algorithm 2013-05-11 07:46:30 -04:00
Yukihiro "Matz" Matsumoto 9e3ec665ca Merge pull request #1242 from schmurfy/gem_version
consider gem version to be 0.0.0 unless specified
2013-05-09 07:33:41 -07:00