build/unix/elfhack/moz.build
author Mike Hommey <mh+mozilla@glandium.org>
Fri, 22 May 2015 10:44:05 +0900
changeset 245568 0ecd4281ab79b5e9c32d366fe1b2476a238a6b40
parent 243337 59e335c30dfd53671cf2aad4dca095910ebc7864
child 306187 3ec6380fca8207fa199693206a3ca24975bf9833
permissions -rw-r--r--
Bug 1167474 - Remove ELFHACK_BUILD hack. r=mshal It used to be necessary because of how elfhack was built in the past, but it happens to be unnecessary nowadays.

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DIST_INSTALL = False
DIRS += ['inject']

if not CONFIG['CROSS_COMPILE']:
    SOURCES += [
        'dummy.c',
        'test-array.c',
        'test-ctors.c',
    ]

    if '-flto' in CONFIG['OS_CFLAGS']:
        SOURCES['test-array.c'].flags += ['-fno-lto']
        SOURCES['test-ctors.c'].flags += ['-fno-lto']

HOST_SOURCES += [
    'elf.cpp',
    'elfhack.cpp',
]

HostProgram('elfhack')

NO_PGO = True