Backed out 4 changesets (bug 1825722) for causing reftest failures CLOSED TREE
[gecko.git] / build / pure_virtual / moz.build
blob2e5169fec62801a239b62988bcfba8ed8b94144c
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 Library("pure_virtual")
9 SOURCES += ["pure_virtual.c"]
11 FORCE_STATIC_LIB = True
13 USE_STATIC_LIBS = True
15 # Build a real library so that the linker can remove it if the symbol
16 # is never used.
17 NO_EXPAND_LIBS = True
19 # LTO can mess things up.
20 if CONFIG["CC_TYPE"] == "clang-cl":
21     CFLAGS += ["-clang:-fno-lto"]
22 else:
23     CFLAGS += ["-fno-lto"]