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
Thomas Nagy
070669067a
https://github.com/nenolod/pkgconf/issues/24 pkgconf is not totally compatible with pkg-config
2012-07-20 18:22:37 +02:00
Thomas Nagy
e2b65f029d
Another fix for the AIX compiler detection
2012-07-09 18:39:34 +02:00
Thomas Nagy
b05ab4d00d
Better detection of the XLC compilers
2012-07-09 18:11:48 +02:00
Thomas Nagy
e8675232fd
AIX compiler detection improvements
2012-07-05 11:24:46 +02:00
Thomas Nagy
f9f31d77c2
Fixed the apidocs of parse_flags
2012-07-05 09:57:34 +02:00
Thomas Nagy
ec3295c1a4
let conf.define() cast bool and None values to int
2012-06-30 18:15:56 +02:00
Thomas Nagy
5ec0cbed4c
self.env->env when looking for defines in parse_flags
2012-05-17 11:16:16 +02:00
Thomas Nagy
66172d53d3
Issue 1165
2012-05-16 08:29:13 +02:00
Thomas Nagy
556eabd0af
new include guard for write_config_header
2012-05-11 07:26:50 +02:00
Thomas Nagy
d5c9b8f258
Issue 1117
2012-04-16 19:54:19 +02:00
Thomas Nagy
8ca6bc9504
Issue 1111
2012-02-26 14:32:30 +01:00
Thomas Nagy
5beb2c4d55
Issue 1117
2012-02-26 13:25:21 +01:00
Thomas Nagy
74beae4113
Issue 1117
2012-02-22 20:41:09 +01:00
Thomas Nagy
b5bb54ede7
remove more except: lines
2012-02-11 14:49:27 +01:00
Thomas Nagy
63d3442ad2
remove more except: lines
2012-02-11 14:43:07 +01:00
Thomas Nagy
4404d9062c
cleanup
2012-02-06 02:13:25 +01:00
Thomas Nagy
bfca082c42
Cleanup for waf 1.7
2012-02-04 19:39:45 +01:00
Thomas Nagy
5d31ae480a
give conf.env.env to Popen in missing places
2011-12-25 11:11:44 +01:00
Johan Boule
952d7ab1e9
changed TODO about darwin to a simple note.
2011-12-03 22:00:16 +01:00
Johan Boule
e071749244
- added note about spurious darwin detection
...
- added google nacl
2011-12-03 20:56:58 +01:00
yngwe
2c59015b99
PowerPC does not necessarily mean MacOS; darwin GCC should now be detected better
2011-11-20 14:24:01 +01:00
Thomas Nagy
a2c4801476
check for endianness
2011-11-19 21:25:58 +01:00
Thomas Nagy
407a78e209
another fix for powerpc, it looks like i am the first to be looking into it
2011-11-19 14:24:17 +01:00
Thomas Nagy
612cb9b8b3
#1061
2011-11-06 14:34:10 +01:00
Thomas Nagy
44a967e326
Initial commit
2011-09-10 11:13:51 +02:00