SSL moz.build Interaktion und Portierbarkeitunbekannt
|
|
Spracherkennung für: .build vermutete Sprache: MT940 {MT940[9] SPS[9] Delphi[8]} [Methode: maximale Elemente, drei Dimensionen]
# 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/.
HostSharedLibrary( "clang-plugin")
HOST_SOURCES += [ "!ThirdPartyPaths.cpp"]
HOST_SOURCES += [
"ArithmeticArgChecker.cpp",
"AssertAssignmentChecker.cpp",
"CanRunScriptChecker.cpp",
"CustomAttributes.cpp",
"CustomTypeAnnotation.cpp",
"DanglingOnTemporaryChecker.cpp",
"DiagnosticsMatcher.cpp",
"EnumSerializerChecker.cpp",
"ExplicitImplicitChecker.cpp",
"ExplicitOperatorBoolChecker.cpp",
"FinalCycleCollectingIsupportsChecker.cpp",
"GlobalVariableInitializationChecker.cpp",
"IntToEnumCastChecker.cpp",
"JSHandleRootedTypedefChecker.cpp",
"KnownLiveChecker.cpp",
"KungFuDeathGripChecker.cpp",
"MozCheckAction.cpp",
"MustOverrideChecker.cpp",
"MustReturnFromCallerChecker.cpp",
"NaNExprChecker.cpp",
"NeedsNoVTableTypeChecker.cpp",
"NoAddRefReleaseOnReturnChecker.cpp",
"NoAutoTypeChecker.cpp",
"NoDuplicateRefCntMemberChecker.cpp",
"NoExplicitMoveConstructorChecker.cpp",
"NoNewThreadsChecker.cpp",
"NonMemMovableMemberChecker.cpp",
"NonMemMovableTemplateArgChecker.cpp",
"NonParamInsideFunctionDeclChecker.cpp",
"NonTerminatedStringChecker.cpp",
"NonTrivialTypeInFfiChecker.cpp",
"NoPrincipalGetURI.cpp",
"NoUsingNamespaceMozillaJavaChecker.cpp",
"OverrideBaseCallChecker.cpp",
"OverrideBaseCallUsageChecker.cpp",
"ParamTraitsEnumChecker.cpp",
"RefCountedCopyConstructorChecker.cpp",
"RefCountedInsideLambdaChecker.cpp",
"RefCountedThisInsideConstructorChecker.cpp",
"ScopeChecker.cpp",
"SprintfLiteralChecker.cpp",
"SupportsWeakPtrCycleCollectionChecker.cpp",
"TrivialCtorDtorChecker.cpp",
"TrivialDtorChecker.cpp",
"VariableUsageHelpers.cpp",
]
# Ideally, we wouldn 't have compile-time choices wrt checks. bug 1617153.
if CONFIG[ "OS_ARCH"] == "WINNT":
HOST_DEFINES[ "TARGET_IS_WINDOWS"] = True
HOST_SOURCES += [
"EmptyBasesChecker.cpp",
"FopenUsageChecker.cpp",
"LoadLibraryUsageChecker.cpp",
]
if CONFIG[ "ENABLE_MOZSEARCH_PLUGIN"]:
HOST_SOURCES += [
"mozsearch-plugin/BindingOperations.cpp",
"mozsearch-plugin/FileOperations.cpp",
"mozsearch-plugin/from-clangd/HeuristicResolver.cpp",
"mozsearch-plugin/MozsearchIndexer.cpp",
"mozsearch-plugin/StringOperations.cpp",
]
GeneratedFile(
"ThirdPartyPaths.cpp",
script= "ThirdPartyPaths.py",
entry_point= "generate",
inputs=[
"/tools/rewriting/ThirdPartyPaths.txt",
"/tools/rewriting/Generated.txt",
],
)
GeneratedFile(
"ThreadAllows.h",
script= "ThreadAllows.py",
entry_point= "generate_file",
inputs=[
"/build/clang-plugin/ThreadAllows.txt",
"/build/clang-plugin/ThreadFileAllows.txt",
],
)
HOST_COMPILE_FLAGS[ "STL"] = []
HOST_COMPILE_FLAGS[ "VISIBILITY"] = []
HOST_LDFLAGS += CONFIG[ "LLVM_LDFLAGS"]
# libc++ is required to build plugins against clang on OS X.
if CONFIG[ "HOST_OS_ARCH"] == "Darwin":
HOST_CXXFLAGS += [ "-stdlib=libc++"]
# We need to make sure that we use the symbols coming from the clang
# binary. In order to do this, we need to pass -flat_namespace and
# -undefined suppress to the linker. This makes sure that we link the
# symbols into the flat namespace provided by clang, and thus get
# access to all of the symbols which are undefined in our dylib as we
# are building it right now, and also that we don 't fail the build
# due to undefined symbols (which will be provided by clang).
HOST_LDFLAGS += [ "-Wl,-flat_namespace", "-Wl,-undefined,suppress"]
# As of clang 8, llvm -config doesn't output the flags used to build clang
# itself, so we don 't end up with -fPIC as a side effect. llvm.org/PR8220
if CONFIG[ "HOST_OS_ARCH"] != "WINNT":
HOST_CXXFLAGS += [ "-fPIC"]
HOST_LDFLAGS += [ "-shared"]
else:
# clang -plugin.dll needs to be deterministic for sccache hashes
HOST_LDFLAGS += [ "-brepro"]
TEST_DIRS += [
"tests",
]
include( "external/sources.mozbuild")
if CONFIG[ "ENABLE_CLANG_PLUGIN_ALPHA"]:
HOST_DEFINES[ "MOZ_CLANG_PLUGIN_ALPHA"] = "1"
include( "alpha/sources.mozbuild")
# In the current moz.build world, we need to override essentially every
# variable to limit ourselves to what we need to build the clang plugin.
if CONFIG[ "HOST_OS_ARCH"] == "WINNT":
extra_cxxflags = [ "-GR-", "-EHsc"]
# Clang 14 headers enforce a requirement upon Visual Studio 2019 headers,
# for support of newer C++ versions, which is necessary for clang itself,
# but as of writing, it 's not necessary for the plugin code, so enable
# the escape hatch, at least until we generally upgrade to VS 2019.
HOST_DEFINES[ "LLVM_FORCE_USE_OLD_TOOLCHAIN"] = True
# Clang 20+ needs /Zc:dllexportInlines - to work around CLANG_ABI issues with inline methods
if CONFIG[ "HOST_CC_VERSION"] and int(CONFIG[ "HOST_CC_VERSION"].split( ".")[ 0]) >= 20:
extra_cxxflags += [ "/Zc:dllexportInlines-"]
else:
extra_cxxflags = [ "-fno-rtti", "-fno-exceptions"]
if CONFIG[ "LLVM_CXXFLAGS"]:
HOST_COMPILE_FLAGS[ "HOST_CXXFLAGS"] = CONFIG[ "LLVM_CXXFLAGS"] + extra_cxxflags
# Avoid -DDEBUG=1 on the command line, which conflicts with a #define
# DEBUG(...) in llvm headers.
DEFINES[ "DEBUG"] = False
HOST_OS_LIBS += [ "clangASTMatchers"]
if CONFIG[ "HOST_OS_ARCH"] == "WINNT":
HOST_OS_LIBS += [ "clang"]
[Verzeichnis aufwärts0.13unsichere VerbindungÜbersetzung europäischer Sprachen durch Browser2026-10-21]
|
2026-11-25
|