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
crimsonwoods
c022357ed5
Add support for 'mips64' architecture.
2015-10-11 16:22:45 +09:00
crimsonwoods
3ae425e3f0
Fix build error for 'x86' architecture.
2015-10-11 16:14:00 +09:00
crimsonwoods
a2966734aa
Fix build error for 'mips' architecture.
2015-10-11 16:06:21 +09:00
crimsonwoods
cd9733933e
Add support for 'arm64' architecture.
2015-10-11 15:58:28 +09:00
Seba Gamboa
2bec248a19
Change some constants names
2015-10-07 21:18:28 -03:00
Seba Gamboa
deb349d729
Refactoring Android NDK toolchain
2015-10-07 21:04:30 -03:00
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