Kp
6c49f5b95d
Disable ccache/distcc during SConf
2015-09-19 23:04:36 +00:00
Kp
d18835bcf9
Invert sense of {} messages
...
Prefer to always have 'yes' for good results and 'no' for bad results.
2015-09-19 23:04:35 +00:00
Kp
22a7d121f5
Restructure compiler preferred option tests
2015-09-19 23:04:35 +00:00
Kp
61044df4f7
Use string formatting consistently
2015-09-19 23:04:35 +00:00
Kp
451325c89b
Improve lazy object setup
2015-09-19 23:04:35 +00:00
Kp
54928db871
Cache os.environ.get
2015-09-19 23:04:35 +00:00
Kp
8f7ed1f5ee
Remove unused program_specific_objects
2015-09-19 23:04:35 +00:00
Kp
d954cdf279
Look up configure test docstring at record time
2015-09-13 21:02:19 +00:00
Kp
198b8295c4
Force sconf.log verbose for LINKCOMSTR
2015-09-13 21:02:19 +00:00
Kp
f2d9ffe48d
Rewrite PCH generation
2015-09-13 20:23:05 +00:00
Kp
0ec66ef673
Use collections.defaultdict for successful_flags
2015-09-13 20:23:05 +00:00
Kp
433fc96505
Avoid redefining LazyObjectConstructor.__strip_extension
2015-09-09 03:27:52 +00:00
Kp
80f70fbc34
Remove SConf test check_compiler_template_parentheses_warning
...
Test check_compiler_template_parentheses_warning probes for a bug in
gcc-4.6. Upstream fixed the bug in gcc-4.7. Using gcc-4.6 is no longer
supported, so remove the test for the bug.
2015-08-22 20:43:04 +00:00
Kp
37838329a1
Add SConf hook to check result against expected value
2015-08-22 20:43:04 +00:00
Kp
3bf0c93067
Factor out lookup of sconf overrides
2015-08-22 20:43:03 +00:00
Kp
b5bf4cf9cc
Change - to _ for check_compiler_option names
2015-08-22 20:43:03 +00:00
Kp
389cd42f47
Default verbosebuild on for non-tty outputs
2015-08-14 03:02:04 +00:00
Kp
41ecab004f
Skip message for unknown variables when there is nothing to do
...
Reported-by: zicodxx <https://github.com/dxx-rebirth/dxx-rebirth/issues/115 >
Fixes: 870ed653b5
("Warn about unknown scons variables")
2015-08-11 03:05:55 +00:00
Kp
001fdfff37
Add workaround for gcc-4.8 ref qualifier quirk
...
In gcc-4.8, a member method with const lvalue and const rvalue methods
is ambiguous.
$ cat t.cpp
class A
{
public:
void a() const &;
void a() const &&;
};
A b();
void c()
{
b().a(); // fails in gcc-4.8, works in later
}
$ gcc-4.8 -Wall -Wextra -std=gnu++0x -O2 -c t.cpp
t.cpp: In function 'void c()':
t.cpp:11:8: error: call of overloaded 'a()' is ambiguous
b().a();
^
t.cpp:11:8: note: candidates are:
t.cpp:4:7: note: void A::a() const &
void a() const &;
^
t.cpp:5:7: note: void A::a() const &&
void a() const &&;
^
$ gcc-4.9 -Wall -Wextra -std=gnu++0x -O2 -c t.cpp
$
Fixes: bda7fef3a0
("Use get_local_player to compute reference to local player")
2015-08-05 02:59:03 +00:00
Kp
b979f52ebf
Centralize required C++11 features
2015-08-03 03:11:25 +00:00
Kp
7086bbae14
Simplify automatic compiler test
2015-08-03 03:11:24 +00:00
Kp
4d8ae44794
Add helper macro DXX_CONSTANT_TRUE
2015-07-29 03:05:28 +00:00
Kp
4a6ae13367
Centralize PCH object hook
2015-07-25 23:10:48 +00:00
Kp
d4dc3df3de
Support PCH+LTO
2015-07-25 23:10:48 +00:00
Kp
9a5654e002
Move similar/editor/autosave.cpp -> common/editor/autosave.cpp
2015-07-25 23:10:47 +00:00
Kp
15fb75c1c7
Fix check_header_includes build
2015-07-25 23:10:45 +00:00
Kp
cdb113a050
Diagnose including compiler-type_traits without dxxsconf.h
2015-07-25 23:10:45 +00:00
Kp
9f84f0851d
Enable clang LTO
...
clang does not support -flto=N syntax for parallel LTO.
Remove -fno-fat-lto-objects too. clang does not understand it;
gcc 4.9 and later default to non-fat LTO.
Fixes: 1037a92d60
("Allow parallel lto")
2015-07-18 21:01:56 +00:00
Kp
82e1ea5636
Move similar/mem/mem.cpp -> common/mem/mem.cpp
2015-07-18 21:01:56 +00:00
Kp
a58e8f87a0
Move similar/misc/hash.cpp -> common/misc/hash.cpp
2015-07-18 21:01:56 +00:00
Kp
cfdffa184f
Move similar/arch/sdl/event.cpp -> common/arch/sdl/event.cpp
2015-07-18 21:01:56 +00:00
Kp
04d9f82a50
Move similar/arch/sdl/key.cpp -> common/arch/sdl/key.cpp
2015-07-18 21:01:56 +00:00
Kp
c7542fe9fc
Move similar/arch/sdl/mouse.cpp -> common/arch/sdl/mouse.cpp
2015-07-18 21:01:56 +00:00
Kp
51ee9d2833
SDL2: skip build of rbaudio.cpp
2015-07-14 02:42:12 +00:00
Kp
a2cb5fea6e
Add SConf option to use SDL2
2015-07-14 02:42:12 +00:00
Kp
658102a868
Improve static_assert test
...
Previously, SConstruct tested whether static_assert worked with trivial
constant expressions. Extend the test to more complicated expressions
like the ones used in the program.
Replace the typedef based approach with an inline enum to avoid warnings
about unused local typedefs.
Allow use with compilers that lack working static_assert or that cannot
accept complicated expressions. Add a non-checking definition that uses
the input parameter. This prevents warnings when types or constants are
used only for the static_assert.
2015-07-09 03:12:45 +00:00
Kp
c03fe30fc2
Move similar/arch/sdl/timer.cpp -> common/arch/sdl/timer.cpp
2015-07-04 21:01:17 +00:00
Kp
2bc1f786d5
Test for -Wlogical-op before using it
...
clang does not understand it, so using it unconditionally breaks the
clang build.
2015-06-20 03:50:46 +00:00
Kp
3905f1a668
Enable -Wcast-qual
2015-06-13 22:42:21 +00:00
Kp
92f44fcaaa
Enable -Wmissing-include-dirs
2015-06-13 22:42:21 +00:00
Kp
7c436f1fbb
Merge pull #39 into unification/master
...
Requested-by: btb <https://github.com/dxx-rebirth/dxx-rebirth/pull/39 >
Acked-by: Matt1360 <https://github.com/dxx-rebirth/dxx-rebirth/pull/39#issuecomment-88712761 >
Acked-by: zico <https://github.com/dxx-rebirth/dxx-rebirth/pull/39#issuecomment-88907523 >
2015-06-07 16:21:37 +00:00
Kp
ff452dbded
Move CLI code to common
...
None of it depends on D1 vs D2.
2015-06-07 16:20:46 +00:00
Kp
a8431a1933
Fix noreturn test with LTO
2015-05-28 03:08:38 +00:00
Kp
41c58ec70e
Remove zlib.h from physfs test
...
The test does not use zlib functions directly.
2015-05-23 04:13:29 +00:00
Kp
3caea6d618
Enable -Wvla
2015-05-17 00:59:26 +00:00
Kp
0ece005dfa
Use screen_mode for screen resolution
2015-05-14 02:23:13 +00:00
Kp
8daf33b422
Blacklist broken clang C++11 constructor inheritance
2015-05-09 17:39:02 +00:00
Kp
f92e890f50
Improve valptridx exception reporting
2015-05-09 17:39:02 +00:00
Kp
1037a92d60
Allow parallel lto
2015-05-09 17:38:57 +00:00
Kp
ee3731ccd1
Add workaround for clang -Wunused-parameter bug
2015-05-06 02:11:03 +00:00