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
palkan
131566753d
Separate compilers setup from config setup
...
Fixes #3418 .
2017-02-13 20:59:07 +03:00
Sorah Fukumori
ee7fc56dd0
Put package's libs flag after %{objs}
...
In case LDFLAG contains "-Wl,--as-needed" or "--as-needed" is enabled by
default, "-l" flags should appear after objs specifiction.
2017-01-09 10:08:06 +09:00
Jun Takeda
fe0884f37f
Removed ununnecessary escape character '\' for MRUBY_XXX in libmruby.flags.mak
2017-01-05 22:42:25 +09:00
Kouhei Sutou
237d26fd86
Support pkg-config in mrbgem.rake
...
Example usage:
MRuby::Gem::Specification.new('mruby-onig-regexp') do |spec|
# ...
if spec.search_package('onigmo')
# Use onigmo.h when onigmo.pc exist.
spec.cc.defines += ["HAVE_ONIGMO_H"]
elsif spec.search_package('oniguruma')
# Use oniguruma.h when oniguruma.pc exist.
spec.cc.defines += ["HAVE_ONIGURUMA_H"]
else
# Use bundled Onigmo otherwise.
# ...
end
end
2016-12-11 21:35:56 +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
Tomasz Dąbrowski
18757c8f7b
Different method of compiling C as C++ (-x c++)
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
Nobuyoshi Nakada
6511bfd79a
Removed trailing spaces
2016-09-28 12:29:41 +09: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
Paolo Bosetti
ac9b6f2a11
In mrbgem_spec.rake, added support for @mrblib_dir @objs_dir, so that a gem can have custom source directory names
2016-09-02 17:38:40 +02: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
wanabe
2aa6b449a2
Reduce compiler include_paths
2016-03-13 17:06:39 +09: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
5c405dea3d
include changed from by quotes ("") to by brackets (<>); close #3032
2015-11-27 17:48:23 +09:00
Zachary Scott
98285e6b16
This patch changes git gem behavior to never pull gems unless specified.
...
Since mgem's function almost the same as git gems, but you can see they already
avoid pulling from source after the gem has already been cloned.
You can see from the `load_special_path_gem` method found in the file
`mruby_build_gem.rake`, or extracted here:
```ruby
if File.exist? mgem_list_dir
git.run_pull mgem_list_dir, mgem_list_url if $pull_gems
else
FileUtils.mkdir_p mgem_list_dir
git.run_clone mgem_list_dir, mgem_list_url, "--depth 1"
end
```
Also, later in this same method; mgem will set the `git` params.
Doing this will trigger the following block:
```ruby
if File.exist?(gemdir)
if $pull_gems
git.run_pull gemdir, url
else
gemdir
end
else
# ... clone
end
```
You can see here, this checks if `$pull_gems` is enabled before pulling.
Lastly, the final condition for this method is here:
```ruby
if params[:checksum_hash]
# Jump to the specified commit
git.run_checkout gemdir, params[:checksum_hash]
else
# Jump to the top of the branch
git.run_checkout gemdir, branch if $pull_gems
end
```
What we changed was the `else` condition of this block to follow the same
behavior as the aforementioned code. In doing so, we can avoid two things:
* Excess `clone` calls can slow down builds (times number of gems used)
* We _don't_ want our code to _update_ during build
To explain, if during build time there are some changes in the gem we are
depending upon: updating during compile time could actually break our
application.
This is what we're trying to avoid.
2015-11-16 11:43:56 +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
crimsonwoods
f5bc0cea20
Implement 'ldflags' for 'armeabi-v7a-hard' and 'armeabi-v7a'.
2015-10-11 17:17:32 +09:00
crimsonwoods
4a07b84d2c
Implement 'ldflags' for 'armeabi' architecture.
2015-10-11 17:13:35 +09:00
crimsonwoods
c0d30ab6cd
Implement 'ldflags' for 'arm64' architecture.
2015-10-11 17:11:38 +09:00
crimsonwoods
07c35de3a6
Implement 'ldflags'.
...
This is the first step of implementing 'ldflags'.
2015-10-11 17:08:46 +09:00
crimsonwoods
c38a27185e
Add a missing required flag '-fstack-protector-strong'.
2015-10-11 16:46:53 +09:00
crimsonwoods
ad89fe63ae
Add support for 'x86_64' architecture.
2015-10-11 16:45:34 +09:00
crimsonwoods
1ac5d35753
Remove duplicated compiler options.
2015-10-11 16:40:59 +09:00
crimsonwoods
3458a83e89
Some flags (-ffunction-sections and etc.) should be set by default for 'x86' architecture.
2015-10-11 16:37:38 +09:00
crimsonwoods
b493c6bfde
Add support for 'armeabi-v7a-hard' architecture.
2015-10-11 16:34:42 +09:00
crimsonwoods
abaad5c0d6
Some flags (-fpic and etc.) should be set by default for 'armeabi-v7a' and 'armeabi' architecture.
2015-10-11 16:32:50 +09:00
crimsonwoods
61a188a38a
Some flags (-fpic and etc.) should be set by default for 'arm64' architecture.
2015-10-11 16:26:58 +09:00
crimsonwoods
86f710cf0c
Replace tab by white-spaces.
2015-10-11 16:24:30 +09:00