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
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
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
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
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
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
Kouhei Sutou
058dc7bd41
Enable -Wwrite-strings by default for GCC
2015-04-18 21:43:40 +09:00
Masaki Muranaka
78176ee7f5
Remove redundant substitutions.
...
"#{MRUBY_ROOT}/include" is set in Command::Compiler#initialize .
2014-06-08 14:42:21 +09: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
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
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
Yuichiro MASUI
0970ca9572
Support to build on pwd != mruby source root
2013-02-23 19:03:59 +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
Yuichiro MASUI
ced80d2b4b
Improved build scripts and config files
2013-01-20 22:48:42 +09:00