moz.build 574 B

1234567891011121314151617181920212223
  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. SharedLibrary('clang-plugin')
  6. SOURCES += [
  7. 'clang-plugin.cpp',
  8. ]
  9. DISABLE_STL_WRAPPING = True
  10. NO_VISIBILITY_FLAGS = True
  11. # libc++ is required to build plugins against clang on OS X.
  12. if CONFIG['HOST_OS_ARCH'] == 'Darwin':
  13. CXXFLAGS += ['-stdlib=libc++']
  14. LDFLAGS += ['-lc++']
  15. DIRS += [
  16. 'tests',
  17. ]