| OLD | NEW |
| 1 """SCons.Tool.aixc++ | 1 """SCons.Tool.aixc++ |
| 2 | 2 |
| 3 Tool-specific initialization for IBM xlC / Visual Age C++ compiler. | 3 Tool-specific initialization for IBM xlC / Visual Age C++ compiler. |
| 4 | 4 |
| 5 There normally shouldn't be any need to import this module directly. | 5 There normally shouldn't be any need to import this module directly. |
| 6 It will usually be imported through the generic SCons.Tool.Tool() | 6 It will usually be imported through the generic SCons.Tool.Tool() |
| 7 selection method. | 7 selection method. |
| 8 | 8 |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 # | 24 # |
| 25 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY | 25 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY |
| 26 # KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE | 26 # KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE |
| 27 # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | 27 # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 28 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | 28 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
| 29 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | 29 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
| 30 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | 30 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
| 31 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 31 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 32 # | 32 # |
| 33 | 33 |
| 34 __revision__ = "src/engine/SCons/Tool/aixc++.py 3603 2008/10/10 05:46:45 scons" | 34 __revision__ = "src/engine/SCons/Tool/aixc++.py 3842 2008/12/20 22:59:52 scons" |
| 35 | 35 |
| 36 import os.path | 36 import os.path |
| 37 | 37 |
| 38 import SCons.Platform.aix | 38 import SCons.Platform.aix |
| 39 | 39 |
| 40 cplusplus = __import__('c++', globals(), locals(), []) | 40 cplusplus = __import__('c++', globals(), locals(), []) |
| 41 | 41 |
| 42 packages = ['vacpp.cmp.core', 'vacpp.cmp.batch', 'vacpp.cmp.C', 'ibmcxx.cmp'] | 42 packages = ['vacpp.cmp.core', 'vacpp.cmp.batch', 'vacpp.cmp.C', 'ibmcxx.cmp'] |
| 43 | 43 |
| 44 def get_xlc(env): | 44 def get_xlc(env): |
| (...skipping 22 matching lines...) Expand all Loading... |
| 67 env['CXXVERSION'] = version | 67 env['CXXVERSION'] = version |
| 68 env['SHOBJSUFFIX'] = '.pic.o' | 68 env['SHOBJSUFFIX'] = '.pic.o' |
| 69 | 69 |
| 70 def exists(env): | 70 def exists(env): |
| 71 path, _cxx, _shcxx, version = get_xlc(env) | 71 path, _cxx, _shcxx, version = get_xlc(env) |
| 72 if path and _cxx: | 72 if path and _cxx: |
| 73 xlc = os.path.join(path, _cxx) | 73 xlc = os.path.join(path, _cxx) |
| 74 if os.path.exists(xlc): | 74 if os.path.exists(xlc): |
| 75 return xlc | 75 return xlc |
| 76 return None | 76 return None |
| OLD | NEW |