Thomas Nagy
16082a4c3e
docs
2016-05-03 21:27:15 +02:00
Thomas Nagy
0ba6b042d5
Remove mac_resources processing, use mac_files instead
2016-04-25 22:35:58 +02:00
Thomas Nagy
9133dbc5c9
Cleanup: no need for keys() everywhere
2016-04-22 21:10:22 +02:00
Thomas Nagy
b87a761ead
Tuples in startswith/endswith (Python 2.5 feature)
2016-04-21 22:30:35 +02:00
Thomas Nagy
8520dd65bb
Code cleanup
2016-04-19 22:00:21 +02:00
Thomas Nagy
e8cf059004
Do not strip / from conf.check(x=, uselib_store=Y) stored arguments
2016-04-04 19:00:31 +02:00
Thomas Nagy
a1a24c8456
Use define_name in check_cfg(define_name=, global_define=1)
2016-04-03 13:20:42 +02:00
Thomas Nagy
e790f6d40f
Added a deprecation warning for the case conf.check_cfg(atleast_version=)
2016-04-03 12:40:00 +02:00
Thomas Nagy
89d5b5462f
Enable define_name in conf.check(modversion=,define_name=)
2016-04-03 12:09:22 +02:00
Thomas Nagy
c0c0da2e92
Set DEFINES=[X=1] with conf.check_cfg(define_name=X) to override the defaults
2016-04-03 11:42:59 +02:00
Thomas Nagy
00c955d8fa
Option for adding HAVE_X to conf.env - conf.check(add_have_to_env=1)
2016-04-03 11:08:00 +02:00
Thomas Nagy
ee0778a76f
Extra parenthesis around assert message
2016-04-01 23:14:26 +02:00
Thomas Nagy
c563396afe
Do not add defines to config.h when global_define is 0
2016-03-28 17:49:27 +02:00
Thomas Nagy
6089893e40
Simplify the assignment of configuration test execution to defines
2016-03-28 16:19:36 +02:00
Thomas Nagy
9fd2683095
Let conf.check/conf.check_cfg set HAVE_x in config.h by default
2016-03-28 16:16:30 +02:00
Thomas Nagy
1eaa5e7a0f
parse_flags code cleanup
2016-03-28 14:46:29 +02:00
Thomas Nagy
b585594d4d
For consistency, cast HAVE_X to integer values
2016-03-28 09:59:24 +02:00
Thomas Nagy
64af7a67bb
clang quirks - Issue 1714
2016-03-04 19:23:14 +01:00
Thomas Nagy
7e16c7cb1e
Removed bld.returned_tasks
2016-02-15 23:52:11 +01:00
Thomas Nagy
22fae4ebef
From now on, ensure that buildcontext classes have a producer
2016-02-15 00:46:39 +01:00
Kenneth Zhao
b8a1675123
Add SUN cc compiler version 5.0
2016-02-04 07:23:34 +01:00
Haakon Sporsheim
f9e78b0225
c_config: Add xtensa as a known CPU.
2016-01-21 22:53:08 +01:00
Thomas Nagy
cbaab2f1b0
Circular dependencies may require passing the same library several times to the linker
2016-01-20 17:40:08 +01:00
Thomas Nagy
22e150e0cb
conf.check(..., comment='some text') to help with large config.h files
2016-01-17 17:02:10 +01:00
Thomas Nagy
101dc83283
Detect newer sun compilers Issue 1686
2016-01-16 21:18:08 +01:00
Thomas Nagy
a184a9e245
Experimental conf.define(key, val, comment='msg in config.h')
2015-12-20 14:26:14 +01:00
Mohammad AlSaleh
6eb836e03d
c_config: Fix regression in exec_cfg() introduced in 1fbac66
...
Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2015-12-11 21:52:38 +02:00
Thomas Nagy
70be189ad2
Experimental option env.merge_config_header
...
This new option writes 'defines' into the test files
during the configuration tests for c/c++. This may
provide more readable config.log files.
2015-11-07 23:02:49 +01:00
Thomas Nagy
3ff0277ea0
Enable global_define for conf.check() too
2015-10-27 22:22:35 +01:00
Thomas Nagy
30336cd9ba
Reverted the changes to conf.check(header_name=) as this causes regressions. Use conf.check(header_name=, link_header_test=False) - #1647
2015-10-26 22:44:39 +01:00
Thomas Nagy
fcec20c9fd
Do not link header tests - ruby detection is broken when the compiler includes the symbols
2015-10-10 10:18:02 +02:00
Thomas Nagy
1fbac668cb
Pass a conf.env.env to check_cfg
2015-10-06 23:06:22 +02:00
Mohammad Alsaleh
6de1ac07d5
c_config: Avoid warnings/errors when checking for C functions
...
The check for C functions fails with '-Werror' in GCC (5.2).
return (int)p;
^
The cast here triggers this error:
error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
p=(void*)(%s);
^
This conversion triggers another error with '-pedantic -Werror':
error: ISO C forbids conversion of function pointer to object pointer type [-Werror=pedantic]
This patch fixes both errors.
Signed-off-by: Mohammad Alsaleh <CE.Mohammad.AlSaleh@gmail.com>
2015-09-13 22:45:32 +02:00
Thomas Nagy
c2f4f1b1e8
Force a chmod value for configuration tests executed
2015-09-03 21:31:46 +02:00
Thomas Nagy
03ad2fff74
Adding input to cmd_and_log/exec_command enables stdin=PIPE
2015-08-23 17:39:25 +02:00
Thomas Nagy
bfbcc73eb2
C/FC detection and outputs to be written in config.log
2015-08-23 17:16:03 +02:00
Thomas Nagy
6ca1c7cad4
Simplify Clang macro detection
2015-08-07 10:51:45 +02:00
Thomas Nagy
45ffae6d4e
Ensure __GNUC_PATCHLEVEL__ is always of str type
2015-08-07 10:48:22 +02:00
Thomas Nagy
a98baba3e8
Unused code fragment
2015-08-07 10:47:06 +02:00
Thomas Nagy
0d9a9b7e77
Let write_config_header use env.WAF_CONFIG_H_PRELUDE
...
A prelude will be added from the variable env.WAF_CONFIG_H_PRELUDE if provided. This
can be used to insert complex macros or include guards::
def configure(conf):
conf.env.WAF_CONFIG_H_PRELUDE = '#include <unistd.h>\\n'
conf.write_config_header('config.h')
2015-07-11 12:01:26 +02:00
Thomas Nagy
4f93b4e814
docs
2015-07-07 22:30:00 +02:00
Thomas Nagy
a946ca8383
Removed the executable bit on c_config.py
2015-06-27 14:03:04 +02:00
Thomas Nagy
1debaf5f03
Better error message when the c compiler is clang and gcc is not found
2015-06-20 23:17:24 +02:00
Thomas Nagy
d761ad1397
Better error message when the c compiler is clang and gcc is not found
2015-06-20 22:21:43 +02:00
Thomas Nagy
ea59b302c5
Fixed conf.multicheck error handling
2015-05-23 15:09:37 +02:00
Thomas Nagy
f048d6d20f
Do not duplicate flags from the OS environment - https://github.com/waf-project/waf/issues/1574
2015-05-16 14:26:43 +02:00
Thomas Nagy
b45f52165b
docs
2015-05-03 10:22:28 +02:00
Thomas Nagy
120af4f1d0
docs
2015-05-03 01:03:11 +02:00
Thomas Nagy
924f8bbce8
Inserting LDFLAGS at the end of the command-line causes less overhead than expected, and LINKFLAGS can still be used for flags in the beginning of the line
2015-04-22 21:34:45 +02:00
Thomas Nagy
0c0e0388a0
More accurate rpath parsing in parse_flags
2015-04-08 23:32:53 +02:00
Thomas Nagy
b8c965153c
Issue 1551 - use -Bstatic and -Bdynamic in parse_flags
2015-03-26 21:50:23 +01:00
Thomas Nagy
eefb67755e
Issue 1529 - conf.check(function_name)
2015-03-13 17:47:53 +01:00
Thomas Nagy
ff2ab4076f
Fix for gcc detection under msys - it behaves like cygwin
2015-03-05 16:18:51 +01:00
Thomas Nagy
80344dee5e
Use splitlines when possible
2015-03-03 12:19:25 +01:00
Thomas Nagy
47a100480f
Issue 1538 - make detection of pyembed optional
2015-02-27 12:03:53 +01:00
Thomas Nagy
bbf26e0e12
Fix the g++ compiler detection which is broken by the new clang tool
2015-02-20 14:23:04 +01:00
Thomas Nagy
e3d8daf8bc
Issue 1527 - a not on as-needed
2015-02-14 22:38:25 +01:00
David Robillard
a3a209b352
Fix compiler detection on OSX 10.6.
...
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2015-02-14 22:29:19 +01:00
Thomas Nagy
9a46ff7558
No one has ever used conf.as_needed()
2014-11-10 22:08:36 +01:00
Thomas Nagy
6c9e7c6233
Much faster version of get_config_header
2014-10-02 21:09:16 +02:00
Thomas Nagy
fec1956327
Issue 1212
2014-09-21 12:47:32 +02:00
Thomas Nagy
d491de7486
conf.check generalization using arbitrary build functions
2014-09-14 10:58:29 +02:00
Thomas Nagy
a112808610
Issue 1481 - unreadable configuration cache file
2014-09-02 22:14:51 +02:00
Thomas Nagy
69bb9f9209
Handle the -Xlinker case in parse_flags
2014-08-31 21:03:03 +02:00
yngwe
342b4ab1ce
c_config: cleanup directory after configuration if no cache is needed.
2014-07-02 09:37:22 +02:00
Thomas Nagy
d4ca0e8cdc
Issue 1440
2014-04-27 20:06:04 +02:00
Chris Winter
53387d8eff
c_config: parse_flags: add support for parsing '-isystem' and friends
...
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2014-03-24 12:43:29 +01:00
Thomas Nagy
72334441ce
Issue 1419 - gcc 2.95 detection
2014-03-05 21:23:32 +01:00
Thomas Nagy
8faafeb913
Issue 1276 - suppress configuration outputs
2014-02-02 04:04:21 +01:00
Krzysztof Kosiński
8147d0a18b
Add support for parameter define_name to check_cfg
2014-01-27 03:45:35 +01:00
Krzysztof Kosiński
e95b150c56
Add simple compiler tools for clang and clang++
2014-01-25 21:00:27 +01:00
Krzysztof Kosiński
86b87413c8
Always return a value which evaluates to True when check_cfg succeeds.
2014-01-25 19:12:44 +01:00
Thomas Nagy
9f7ceb0e91
Issue 1395
2014-01-14 20:11:11 +01:00
Jérôme Carretero
33a60e79e7
treecleaner: 'in [...]' replaced by 'in (...)' where appropriate
2014-01-05 16:27:06 -05:00
Thomas Nagy
29252511d0
Issue 1390 - conf.check(lib='several libs')
2013-12-21 17:29:06 +01:00
Thomas Nagy
8571c15a1b
missing change
2013-11-08 22:46:51 +01:00
Thomas Nagy
dcd6184d3f
Issue 1372 version detection for old and buggy sun compilers
2013-11-08 22:45:34 +01:00
Thomas Nagy
3884124886
Issue 1371
2013-11-03 00:14:04 +01:00
Thomas Nagy
ff820ccf49
Extract rpath flags into use variables
2013-10-27 14:56:04 +01:00
Dariusz Pelowski
53ab568fe5
fix for missing package name argument for 'pkg-config' call during fetching custom variables
...
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-10-15 00:25:26 +02:00
Jérôme Carretero
8076e8d52e
Tools: c_config: one more fix for the path, which can also be a string...
2013-09-05 00:12:45 -04:00
Jérôme Carretero
85e7df4ea1
Tools: c_config: fix mistake in previous commit
2013-09-04 23:47:47 -04:00
Jérôme Carretero
8d37f79ea2
Tools: c_config: pkg-config is indeed a list of strings
2013-09-04 23:21:19 -04:00
Thomas Nagy
f588f95a27
Issue 1339 detect the sun compiler version number
2013-07-13 19:06:08 +02:00
Thomas Nagy
fa5ed99a21
Removed the unused env parameter from conf.write_config_header()
2013-05-26 21:48:26 +02:00
Thomas Nagy
5c6d626048
removed the cache from the task level, it usually degrades performance and is better implemented on the compiler level
2013-05-26 10:14:49 +02:00
yngwe
031e94ffa7
allow c_config to recognize clang as gcc
2013-05-13 20:07:25 +02:00
Thomas Nagy
3934918217
Issue 1253
2013-05-08 23:18:53 +02:00
Kevin Ollivier
13ad17f96c
Add support for parsing more MSVC command line options to check_cfg.
2013-01-01 12:13:23 -08:00
Thomas Nagy
148598a815
reverted the changes from #1212 and #1237
2012-12-28 21:58:37 +01:00
Thomas Nagy
4b4aaf7dc5
Issue 1236
2012-12-12 20:09:40 +01:00
Thomas Nagy
e9d5d29ce1
missing change
2012-12-05 00:40:50 +01:00
Thomas Nagy
5eed580a0c
Merge branch 'master' of https://code.google.com/p/waf
2012-11-04 10:28:44 +01:00
Thomas Nagy
6635a9788b
Issue 1220
2012-11-04 10:28:34 +01:00
immerrr
54464995c6
Avoid possible "unused parameter" warnings in check_c/check_cc boilerplates
...
When CFLAGS/CXXFLAGS contains '-Wextra -Werror', such warnings are reported
and become errors, which causes respective checks to fail.
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2012-11-04 10:24:34 +01:00
alexrp
ba6718fb05
Add more stuff to the macro-to-DEST_CPU list.
2012-11-01 14:14:08 +01:00
Thomas Nagy
1350ebc7a5
Issue 1212
2012-10-20 23:45:16 +02:00
Thomas Nagy
0f6ee2a0cf
Issue 1192
2012-08-24 22:53:07 +02:00
Thomas Nagy
e67b593eee
Issue 1191
2012-08-23 17:33:36 +02:00
Thomas Nagy
2d6fed4101
Issue 1188
2012-08-04 02:26:08 +02:00