moz.build 666 B

12345678910111213141516171819202122232425262728
  1. # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
  2. # This Source Code Form is subject to the terms of the Mozilla Public
  3. # License, v. 2.0. If a copy of the MPL was not distributed with this
  4. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. DIST_INSTALL = False
  6. DIRS += ['inject']
  7. if not CONFIG['CROSS_COMPILE']:
  8. SOURCES += [
  9. 'dummy.c',
  10. 'test-array.c',
  11. 'test-ctors.c',
  12. ]
  13. if '-flto' in CONFIG['OS_CFLAGS']:
  14. SOURCES['test-array.c'].flags += ['-fno-lto']
  15. SOURCES['test-ctors.c'].flags += ['-fno-lto']
  16. HOST_SOURCES += [
  17. 'elf.cpp',
  18. 'elfhack.cpp',
  19. ]
  20. HostProgram('elfhack')
  21. NO_PGO = True