2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-17 23:46:53 +01:00
Commit Graph

554 Commits

Author SHA1 Message Date
Thomas Nagy
2d89937205
-DFOO in compiler commands - Issue 1704 2016-02-18 21:56:02 +01:00
Thomas Nagy
7e16c7cb1e
Removed bld.returned_tasks 2016-02-15 23:52:11 +01:00
Guillaume Poirier-Morency
c4bfce0fe7 vala: Initialize 'VALAFLAGS' with OS flags 2016-02-15 21:54:35 +01:00
Thomas Nagy
4e09a1bc5a
New lru caches in preproc.py to limit memory overconsumption 2016-02-15 00:46:44 +01:00
Thomas Nagy
22fae4ebef
From now on, ensure that buildcontext classes have a producer 2016-02-15 00:46:39 +01:00
SirNickolas
a61528efc3 Make D dependency scanner aware of package.d files 2016-02-11 21:43:32 +01:00
Thomas Nagy
70df345c3f
Use the lru implementation when present (Python3) 2016-02-10 23:42:30 +01:00
Thomas Nagy
82b3ade500
Clear the c dependency scanner cache to prevent excessive memory consumption 2016-02-10 00:07:07 +01:00
Kenneth Zhao
b8a1675123
Add SUN cc compiler version 5.0 2016-02-04 07:23:34 +01:00
Guillaume Poirier-Morency
8c8b0d8f0b
Apply 'Utils.to_list' on 'vala_defines' and include it in 'valadoc' tool 2016-02-04 07:23:10 +01:00
Thomas Nagy
361e4b7730
Enable vnum for libraries created in the source directory 2016-01-30 11:39:18 +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
aac6e800eb
Import libraries for Intel Fortran 2016-01-20 00:12:42 +01:00
Thomas Nagy
872f77f8b5
Build fcprogram_test with Intel compiler 2016-01-19 21:08:48 +01:00
Harald Klimach
d00b90986c Set FC_NAME also in find_ifort_win32. 2016-01-18 21:57:01 +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
8ffbb6db0a
Code cleanup 2016-01-17 14:25:57 +01:00
Thomas Nagy
139b3f7a05
Unused variable LINK 2016-01-17 03:55:19 +01:00
Thomas Nagy
e91fbe2d1b
Intel Fortran manifest files 2016-01-17 03:27:30 +01:00
Thomas Nagy
66009e5777
Intel Fortran detection on Windows 2016-01-17 02:30:41 +01:00
Thomas Nagy
7a93e7e443 Added the windows Intel Fortran flags from Harald's branch 2016-01-16 22:50:14 +01:00
Thomas Nagy
101dc83283 Detect newer sun compilers Issue 1686 2016-01-16 21:18:08 +01:00
Thomas Nagy
adc1ce1375
Simplification: added Task.get_cwd() 2016-01-11 05:25:46 +01:00
Thomas Nagy
331dd9f96c
Commands executed without a shell will merge flags of the form 2016-01-06 17:53:55 +01:00
Thomas Nagy
d23490287a
Code simplifications - use enumerate 2016-01-06 14:53:18 +01:00
Harald Klimach
7541929609 Do not set the ARFLAGS unconditionally to rcs for ifort.
Instead, try invoke search for ar after looking for xiar.
2016-01-06 12:38:31 +01:00
Thomas Nagy
3430e18205
New option in waf_unit_tests --clear-failed - Issue 1678 2016-01-05 15:20:56 +01:00
Thomas Nagy
43e26b5bef
cwd must be a Node object 2016-01-02 01:54:52 +01:00
Thomas Nagy
7b26ce74d1
Updated the cwd logic in glib2.py 2016-01-02 01:37:20 +01:00
Thomas Nagy
017d7a6257
Typo 2016-01-02 01:04:08 +01:00
Thomas Nagy
da97d28d18
Fixed undefined variables 2016-01-02 00:58:38 +01:00
Thomas Nagy
a3e014b0ae Enable lazy Visual Studio detection by default 2015-12-25 19:28:29 +01:00
Thomas Nagy
4111d559b4 docs 2015-12-25 18:06:18 +01:00
Thomas Nagy
d1fdf2f16a Removed the default include paths that were always added to vala 2015-12-24 22:49:22 +01:00
Thomas Nagy
2d36bfe7ff Removed the unused 'dummy' function from fc.py 2015-12-24 22:46:27 +01:00
Thomas Nagy
5a3a89b4de Stop adding incompatible task data into the same dict objects 2015-12-24 18:36:48 +01:00
Thomas Nagy
72fda8ae36 Reduce the size of the build pickle file 2015-12-24 18:36:38 +01:00
Thomas Nagy
ddaf29b78d Process CPPFLAGS at the end of commands 2015-12-23 19:26:34 +01:00
Thomas Nagy
7681bddfb7 Remove Node.sig and Node.cache_sig 2015-12-23 17:55:44 +01:00
Thomas Nagy
04449361e8 Detect clang first on FreeBSD, NetBSD, etc 2015-12-23 17:55:44 +01:00
Thomas Nagy
e1d82be8a5 The tool kde4 is not included by default in waf 1.9 2015-12-23 17:55:44 +01:00
Thomas Nagy
972d8e4904 The tool qt4 is not included by default in waf 1.9 2015-12-23 17:55:44 +01:00
Thomas Nagy
d3f788da4c Added the tool called 'nobuild' to help troubleshoot build scripts 2015-12-23 17:55:44 +01:00
Harald Klimach
c097fcc08a Replaced spaces by tabs. 2015-12-23 15:38:48 +01:00
Harald Klimach
5c3a40d115 Loosened and simplified the regex for the version string of ifort as suggested by apthorpe 2015-12-23 15:28:43 +01:00
Harald Klimach
f5cb7c9e2e Ensure the stdout and stderr attributes actually exist when capturing the
WafError in getoutput for the Fortran compilers.
2015-12-23 15:15:06 +01:00
Harald Klimach
2262f1009b Ignore error codes from cmd_and_log in getoutput that is used to obtain
the version string of Fortran compilers.
Some compilers will fail and return an error code if not provided with
a source file, yet they print the desired version string.
Thus, in case of an error code we ignore it here and just pass on the
stdout and stderr of the called subprocess.
2015-12-23 14:32:52 +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
41f005082f
Let msvc.py display encoding errors in the config.log file 2015-12-09 00:14:17 +01:00
Thomas Nagy
0e03aec82d
Unmask unicode errors in msvc - Issue 1657 2015-11-20 19:59:32 +01:00
Thomas Nagy
a46cb274a7
Intel fortran detection - Issue 1655 2015-11-18 19:12:15 +01:00
Thomas Nagy
e66cf563ce
Uninitialized variables when qt options are not used 2015-11-16 19:30:07 +01: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
d4334adfb9
Let waf -v catch invalid string on hcode values in Python3 2015-11-03 22:35:33 +01:00
Thomas Nagy
3ff0277ea0
Enable global_define for conf.check() too 2015-10-27 22:22:35 +01:00
Thomas Nagy
722480b25c
Fixed the ruby detection for openindiana 2015-10-26 22:53:22 +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
0c07ff91b0
Propagate ldflags/LDFLAGS besides linkflags/LINKFLAGS 2015-10-20 21:37:29 +02:00
Thomas Nagy
971b2d32b7
More Msys2 fun! 2015-10-16 22:45:27 +02:00
Thomas Nagy
b5ffe6be31
Enable bld.program to recognize .gs in the same way as .vala 2015-10-14 23:26:56 +02:00
Thomas Nagy
f28426594e
Cleanup: removed most unused variables and imports 2015-10-11 11:32:27 +02: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
1886e77063
Workaround for python-config bug 7352 - Issue 1636 2015-10-09 19:19:59 +02:00
Thomas Nagy
acc64df657
IronPython fix for VisualStudio detection 2015-10-07 00:16:11 +02:00
Thomas Nagy
1fbac668cb
Pass a conf.env.env to check_cfg 2015-10-06 23:06:22 +02:00
Thomas Nagy
f9f5e85616
Indentation issues 2015-09-22 07:08:21 +02:00
Thomas Nagy
dbdc95dfb6
The meaning of filter differs in Python 2/3 - Fixed MSVC builds without lazy for Python 3 2015-09-20 12:03:27 +02:00
Thomas Nagy
8ba068670a
Enable vala processing on a folder basis with the vala_dir parameter - Issue 1601 2015-09-19 19:53:46 +02:00
Thomas Nagy
19042c840e
clean up in demos/vala 2015-09-19 17:01:03 +02:00
Thomas Nagy
8ea1de44a7
Vala resources - Issue 1626 2015-09-19 09:53:53 +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
002706431d
docs 2015-09-12 23:49:38 +02:00
Thomas Nagy
49f51d547b
Missing change -Kpic/-xcode=pic32 for sun compilers in c++ mode 2015-09-12 23:32:39 +02:00
Chen He
411672c069 Update the pic build flag used for Sun CC
`-Kpic` had been used to generate position-indenpendent code for Sun CC.
This permits only 2^10 unqiue symbols per shared object on 64-bit
systems.  This is an unreasonably small default. Switching to `-KPIC`
increases the number to 2^29.

According to
http://docs.oracle.com/cd/E37069_01/html/E37074/bjapp.html#OSSCGbjatt,
both `-Kpic` and `-KPIC` have been deprecated, and the `-xcode` option
should be used instead. `-xcode` has been available since at least Sun
Studio 8.
2015-09-10 10:37:40 -04:00
ita1024
b01ae4d98c Merge pull request #1624 from shoover/consolidate-mobile-targets
Consolidate mobile targets
2015-09-09 23:00:05 +02:00
Shawn Hoover
c376be6f61 Fix duplicate winphone 8.0 targets in the detected versions list. 2015-09-09 12:31:09 -04:00
Shawn Hoover
a8480cc2ff Fix to consolidate WinCE versions in the compiler versions list. 2015-09-09 12:30:23 -04:00
Shawn Hoover
eb18a77a5f Override lazy detection and save MSVC_INSTALLED_VERSIONS if get_msvc_versions is called directly. 2015-09-09 10:52:23 -04:00
Shawn Hoover
b00b9ab4e3 Don't save/print MSVC_INSTALLED_VERSIONS for lazy detection. 2015-09-09 10:52:20 -04:00
Thomas Nagy
c2f4f1b1e8
Force a chmod value for configuration tests executed 2015-09-03 21:31:46 +02:00
Thomas Nagy
eb13629bda
clang seems to provide llvm-ar 2015-09-03 20:58:47 +02:00
Shawn Hoover
fa41ac8213 Fixed a local variable shadowing the arch return switch for setup_msvc. 2015-09-02 09:16:48 -04:00
ita1024
36e07b3eaf Merge pull request #1614 from shoover/lazy-msvc-detect-1.8
Optionally lazily check installed msvc compilers' environments
2015-09-01 07:27:36 +02:00
Shawn Hoover
5e833ef3f8 Read the lazy autodetect option instead of passing a value everywhere. 2015-08-31 22:06:34 -04:00
Shawn Hoover
4b65d3f875 Optionally lazily check installed msvc compilers' environments and stop when one
is found that matches the user's options. This happens during autodetect only
when the new option msvc_lazy_autodetect or env.MSVC_LAZY_AUTODETECT is set.
2015-08-31 14:55:15 -04:00
Thomas Nagy
e72c310b7d
Ruby 2.x detection - Issue 1613 2015-08-30 20:05:38 +02:00
Thomas Nagy
3e6b3bc5ca
Added fortran detection and warn when no link is possible - Issue 1603 and Issue 1610 2015-08-29 11:01:47 +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
933feab352
Glob mac_app resource trees - Issue 1586 2015-06-27 15:18:57 +02:00
Thomas Nagy
a946ca8383
Removed the executable bit on c_config.py 2015-06-27 14:03:04 +02:00
Thomas Nagy
f7b4940158
docs 2015-06-21 22:43:19 +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