Commit Graph

67 Commits

Author SHA1 Message Date
Thomas Nagy 56b84dc5a5
Cleanup 2016-05-22 03:13:28 +02:00
Thomas Nagy 15985db73d
Refactor ifort.py like msvc.py 2016-05-22 03:07:44 +02:00
Thomas Nagy 7fadda584a
Add a __repr__ method for MSVC_INSTALLED_VERSIONS 2016-05-22 02:50:02 +02:00
Thomas Nagy df6e88f2f5
Typo 2016-05-22 02:45:12 +02:00
Thomas Nagy 929f89c0bb
Simplify msvc.py 2016-05-22 02:43:35 +02:00
Thomas Nagy 67e7db41d9
Simplification x=x+1 -> x+=1 2016-05-22 00:45:47 +02:00
Thomas Nagy 74e54322c5
Use try-else-finally in Python >= 2.5 2016-05-18 22:01:37 +02:00
Thomas Nagy fd05cff103
Missing installation fixes 2016-05-17 19:49:44 +02:00
Thomas Nagy b1f5c0f814
Create installation tasks directly
Task generators created from other task generators may be
skipped during partial builds. This change re-enables
install_task as a task attribute and provides a task
object with input and output nodes which can be re-used
by other tasks.
2016-05-06 15:54:36 +02:00
Thomas Nagy 8520dd65bb
Code cleanup 2016-04-19 22:00:21 +02:00
Shawn Hoover ac3a332b03 Enable lazy Visual Studio detection by default: one missed spot. 2016-04-15 13:41:53 -04:00
Thomas Nagy a08aff6bff
Format debug/info records lazily 2016-03-19 14:46:22 +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 adc1ce1375
Simplification: added Task.get_cwd() 2016-01-11 05:25:46 +01:00
Thomas Nagy 43e26b5bef
cwd must be a Node object 2016-01-02 01:54:52 +01:00
Thomas Nagy 017d7a6257
Typo 2016-01-02 01:04:08 +01:00
Thomas Nagy a3e014b0ae Enable lazy Visual Studio detection by default 2015-12-25 19:28:29 +01: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 f28426594e
Cleanup: removed most unused variables and imports 2015-10-11 11:32:27 +02:00
Thomas Nagy acc64df657
IronPython fix for VisualStudio detection 2015-10-07 00:16:11 +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
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
Shawn Hoover fa41ac8213 Fixed a local variable shadowing the arch return switch for setup_msvc. 2015-09-02 09:16:48 -04: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 44211e0bb5
Enabled errors on warnings for the apidoc generation 2015-04-26 21:00:15 +02:00
Daniel Welty 94a48cc4ae
msvc: Support additional cross-compile types
VS 2013 supports cross-compiling for x86 and arm from amd64, but Waf
wouldn't search for these compilers.

Change-Id: I5b0d6809b666587d5aea19e6491fa7f0572c1a40
Type: Bug Fix

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2015-03-17 02:11:41 +01:00
Thomas Nagy c18f457215
Issue 1509 cmd -> cmd.exe 2014-11-13 19:27:58 +01:00
Thomas Nagy 9f6f814999
Issue 1497 - keep the hcode in subclasses 2014-10-13 19:45:05 +02:00
Josh Bartel a7eb3d811b
msvc: Create new task to install pdb file
Previously the msvc tool was re-using the install_task set up by ccroot
in apply_link by appending files to install_task.sources.

This is problematic because the install task is posted by the time the
call to install_files returns and the post method of the install task
copies files from sources to inputs and inputs as the list of files
that get installed.  This usually worked due to the fact that the
install_task does not guard against getting posted multiple times.  In
some situations such as installing and building a single target using
the --targets flag this was not working and pdb files would not be
installed.

This updates the msvc tool to create a separate task to install the
pdb files instead of re-using the existing install_task.  This fixes
the issue observed with pdb files not being installed when building and
installing a single target and is also consistent with how other files
are being installed from ccroot such as in apply_implib and apply_vnum.

Change-Id: I9fc53061847453fdb5cf105f2276a2eab5fd43b4
Type: Bug Fix
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2014-06-11 00:26:14 +02:00
Thomas Nagy 015ad7349b Write a different waf-print-msvc.py file each time to help debugging 2014-02-26 07:24:47 +01:00
Jérôme Carretero 33a60e79e7 treecleaner: 'in [...]' replaced by 'in (...)' where appropriate 2014-01-05 16:27:06 -05:00
Jérôme Carretero 8a9b3825a2 Tools: msvc: fix regression in msvc MT tool call (issue #1357)
Yeah, env['MT'] is a list.
2013-09-12 18:50:06 -04:00
Thomas Nagy fe1bbf536f Issue 1356 icl detection with python 3 2013-09-07 13:27:13 -04:00
Jérôme Carretero 5064fd92ef always use the convention that commands are lists, remove find_perl_program, add interpreter 2013-09-04 23:10:10 -04:00
Thomas Nagy 007acd87cf Issue 1335 2013-07-16 21:10:32 +02:00
Thomas Nagy 69f5f71120 Removed the annoying assert in msvs.py 2013-05-07 10:08:49 +02:00
Stian Selnes 336c3f2e3f msvc: fix check of intel composer version with visual studio 2010
Signed-off-by: Thomas Nagy <tnagy1024@gmail.com>
2013-04-02 17:04:44 +02:00
yngwe 46f51a3925 Added support for Windows Phone 8 compilers; added feature support for Windows Desktop Application and Windows Phone Application compilation 2013-02-17 14:09:32 +01:00
Thomas Nagy 67b8e27c34 Issue 1237 2013-01-04 02:27:42 +01:00
Matt Hoosier 3b699e3fed Make msvc.py behave itself when other toolchains are loaded
Chain down to the pre-existing Task.exec_command() implementation if
task.env.CC_NAME indicates that the current taskgen isn't building using
Microsoft tools.

Attempt #2. The previous version (9b443a4e, reverted in 148598a8) was
found in Issue 1243 to lead to unusual infinite regress if the
monkeypatching code executed more than once in a Python interpreter
lifetime. This version uses dynamic subclassing to avoid that problem.

Issue 1237.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-01-04 02:11:26 +01:00
Thomas Nagy 148598a815 reverted the changes from #1212 and #1237 2012-12-28 21:58:37 +01:00
Matt Clarkson 8c566d1a42 Fixed up a bug in the gather_intel_composer_versions that results in an exception being thrown on windows systems with no intel composer versions installed. Raise in issue 1239
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2012-12-17 18:07:25 +01:00