Changeset 576 for CMT/HEAD/mgr/Unix.make


Ignore:
Timestamp:
May 10, 2011, 2:39:10 PM (13 years ago)
Author:
rybkin
Message:

See C.L. 458

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/mgr/Unix.make

    r560 r576  
    5151endif
    5252
    53 ifeq ($(CMTBIN),Darwin)
     53ifneq (,$(findstring Darwin,$(CMTBIN)))
    5454cpp       = c++ -O2
    5555endif
     
    7979ifneq (,$(findstring i386,$(CMTBIN)))
    8080_mode = 32
    81 else ifneq (,$(findstring i486,$(CMTBIN)))
     81endif
     82ifneq (,$(findstring i486,$(CMTBIN)))
    8283_mode = 32
    83 else ifneq (,$(findstring i586,$(CMTBIN)))
     84endif
     85ifneq (,$(findstring i586,$(CMTBIN)))
    8486_mode = 32
    85 else ifneq (,$(findstring i686,$(CMTBIN)))
     87endif
     88ifneq (,$(findstring i686,$(CMTBIN)))
    8689_mode = 32
    87 else ifneq (,$(findstring x86_64,$(CMTBIN)))
     90endif
     91ifneq (,$(findstring x86_64,$(CMTBIN)))
    8892_mode = 64
    8993endif
     
    107111ifeq ($(_mode),32)
    108112    TARGET_ARCH = -m32
    109 else ifeq ($(_mode),64)
     113endif
     114ifeq ($(_mode),64)
    110115    TARGET_ARCH = -m64
     116endif
     117endif
     118
     119#
     120# Specify mode explicitly for Darwin
     121# (on Mac OS X 10.6, uname -m may show i386
     122# while c++ builds for x86_64 by default)
     123#
     124ifneq (,$(findstring Darwin,$(CMTBIN)))
     125ifeq ($(_mode),32)
     126    TARGET_ARCH = -arch i386
     127endif
     128ifeq ($(_mode),64)
     129    TARGET_ARCH = -arch x86_64
    111130endif
    112131endif
     
    139158format_dependencies = $(CMTROOT)/mgr/cmt_format_deps.sh
    140159build_dependencies = :
    141 else ifneq (,$(findstring Darwin,$(CMTBIN)))
     160endif
     161ifneq (,$(findstring Darwin,$(CMTBIN)))
    142162cppdepflags = -MM
    143163format_dependencies = $(CMTROOT)/mgr/cmt_format_deps.sh
Note: See TracChangeset for help on using the changeset viewer.