moz.build (635B)
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/. 6 7 Library("pure_virtual") 8 9 SOURCES += ["pure_virtual.c"] 10 11 FORCE_STATIC_LIB = True 12 13 USE_STATIC_MSVCRT = True 14 15 # Build a real library so that the linker can remove it if the symbol 16 # is never used. 17 NO_EXPAND_LIBS = True 18 19 # LTO can mess things up. 20 if CONFIG["CC_TYPE"] == "clang-cl": 21 CFLAGS += ["-clang:-fno-lto"] 22 else: 23 CFLAGS += ["-fno-lto"]