~ubuntu-branches/ubuntu/quantal/lightning-extension/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/build/unix/build-clang/build-clang.py

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-11-08 10:00:06 UTC
  • mfrom: (1.3.8)
  • Revision ID: package-import@ubuntu.com-20121108100006-gljsc52uauf1o4ri
Tags: 1.9+build1-0ubuntu0.12.10.1
* New upstream stable release to support Thunderbird 17 (CALENDAR_1_9_BUILD1)
  - see LP: #1080212 for USN information

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# License, v. 2.0. If a copy of the MPL was not distributed with this
4
4
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
5
 
6
 
llvm_revision = "160176"
 
6
llvm_revision = "161022"
7
7
moz_version = "moz0"
8
8
 
9
9
##############################################
70
70
        build_one_stage_aux(stage_dir, is_stage_one)
71
71
    with_env(env, f)
72
72
 
 
73
isDarwin = platform.system() == "Darwin"
 
74
 
73
75
def build_one_stage_aux(stage_dir, is_stage_one):
74
76
    os.mkdir(stage_dir)
75
77
 
77
79
    inst_dir = stage_dir + "/clang"
78
80
 
79
81
    configure_opts = ["--enable-optimized",
 
82
                      "--disable-assertions",
80
83
                      "--prefix=%s" % inst_dir,
81
84
                      "--with-gcc-toolchain=/tools/gcc-4.5-0moz3"]
82
 
    if is_stage_one:
 
85
    if is_stage_one and not isDarwin:
83
86
        configure_opts.append("--with-optimize-option=-O0")
84
87
 
85
88
    build_package(llvm_source_dir, build_dir, configure_opts)
86
89
 
87
 
isDarwin = platform.system() == "Darwin"
 
90
if isDarwin:
 
91
    os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.7'
88
92
 
89
93
if not os.path.exists(source_dir):
90
94
    os.makedirs(source_dir)
99
103
    if not isDarwin:
100
104
        patch("old-ld-hack.patch", 1, llvm_source_dir)
101
105
        patch("compiler-rt-gnu89-inline.patch", 0, compiler_rt_source_dir)
 
106
        patch("no-sse-on-linux.patch", 1, clang_source_dir)
102
107
 
103
108
if os.path.exists(build_dir):
104
109
    shutil.rmtree(build_dir)