1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= C language family frontend for LLVM 17.0
8 HOMEPAGE= http://llvm.org/
12 SITES[main]= https://github.com/llvm/llvm-project/releases/download/llvmorg-17.0.6/
13 http://llvm.org/releases/17.0.6/
14 DISTFILE[1]= clang-17.0.6.src.tar.xz:main
15 DISTFILE[2]= clang-tools-extra-17.0.6.src.tar.xz:main
16 DISTFILE[3]= cmake-17.0.6.src.tar.xz:main
18 SPKGS[standard]= complete
23 OPTIONS_AVAILABLE= none
24 OPTIONS_STANDARD= none
26 BUILD_DEPENDS= llvm:dev:standard
28 BUILDRUN_DEPENDS= llvm:primary:standard
29 EXRUN[extra]= llvm:primary:standard
30 EXRUN[compiler]= dynlibs
31 EXRUN[dynlibs]= llvm:primary:standard
33 USES= cmake ninja ncurses zlib execinfo cpe shebangfix
34 python:build c++:compiler,extra
35 GNOME_COMPONENTS= libxml2
37 DISTNAME= clang-17.0.6.src
39 LICENSE= CUSTOM1:compiler
40 LICENSE_NAME= CUSTOM1:"University of Illinois/NCSA Open Source License"
41 LICENSE_FILE= CUSTOM1:{{WRKSRC}}/LICENSE.TXT
44 CMAKE_BUILD_TYPE= Release
47 SHEBANG_FILES= utils/hmaptool/hmaptool
48 tools/scan-view/bin/scan-view
49 tools/clang-format/git-clang-format
50 tools/clang-format/clang-format-diff.py
51 tools/extra/clang-tidy/tool/clang-tidy-diff.py
52 tools/extra/clang-tidy/tool/run-clang-tidy.py
53 tools/extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
54 tools/scan-build-py/bin/analyze-build
55 tools/scan-build-py/bin/intercept-build
56 tools/scan-build-py/bin/scan-build
57 tools/scan-build-py/libexec/analyze-cc
58 tools/scan-build-py/libexec/analyze-c++
59 tools/scan-build-py/libexec/intercept-cc
60 tools/scan-build-py/libexec/intercept-c++
62 PLIST_SUB= LLVM_RELEASE="17.0.6"
72 CMAKE_ARGS= -DLLVM_BUILD_LLVM_DYLIB=ON
73 -DLLVM_LINK_LLVM_DYLIB=ON
74 -DLLVM_PARALLEL_LINK_JOBS=1
75 -DLLVM_PARALLEL_COMPILE_JOBS={{MAKE_JOBS_NUMBER}}
76 -DLLVM_INCLUDE_TESTS:BOOL=OFF
77 -DLLVM_BUILD_32_BITS:BOOL=OFF
79 -DGCC_INSTALL_PREFIX={{LOCALBASE}}/toolchain/ravensys-gcc
80 -DCLANG_ENABLE_CLANGD:BOOL=OFF
81 -DPython3_EXECUTABLE={{PYTHON_CMD}}
82 -DLLVM_COMMON_CMAKE_UTILS={{WRKDIR}}/cmake-17.0.6.src
83 VAR_OPSYS[freebsd]= CMAKE_ARGS=-DLLVM_USE_LINKER=gold
84 CMAKE_ARGS=-DCMAKE_INSTALL_RPATH:STRING="{{LOCALBASE}}/llvm/lib"
85 VAR_OPSYS[sunos]= CMAKE_ARGS=-DCMAKE_SKIP_RPATH:BOOL=TRUE
86 LDFLAGS=-Wl,-R{{LOCALBASE}}/llvm/lib
87 VAR_OPSYS[linux]= CMAKE_ARGS=-DLLVM_USE_LINKER=gold
88 CMAKE_ARGS=-DCMAKE_INSTALL_RPATH:STRING="{{LOCALBASE}}/llvm/lib"
89 VAR_OPSYS[netbsd]= CMAKE_ARGS=-DLLVM_USE_LINKER=gold
90 CMAKE_ARGS=-DCMAKE_INSTALL_RPATH:STRING="{{LOCALBASE}}/llvm/lib"
91 VAR_OPSYS[dragonfly]= CMAKE_ARGS=-DLLVM_USE_LINKER=gold
92 CMAKE_ARGS=-DCMAKE_INSTALL_RPATH:STRING="{{LOCALBASE}}/llvm/lib"
93 VAR_OPSYS[midnightbsd]= CMAKE_ARGS=-DLLVM_USE_LINKER=gold
94 CMAKE_ARGS=-DCMAKE_INSTALL_RPATH:STRING="{{LOCALBASE}}/llvm/lib"
95 CMAKE_ARGS=-DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-raven-freebsd12.3
96 CMAKE_ARGS=-DLLVM_HOST_TRIPLE=x86_64-raven-freebsd12.3
97 MAKEFILE_LINE=CONFIGURE_TARGET=x86_64-raven-freebsd12.3
100 # Remove headers that conflict with /usr/include
103 -e '/ stdalign.h/d' \
108 -e '/ stdnoreturn.h/d' \
109 ${WRKSRC}/lib/Headers/CMakeLists.txt
111 pre-configure-midnightbsd:
112 # Remove headers that conflict with /usr/include
115 -e '/ stdalign.h/d' \
117 -e '/ stdatomic.h/d' \
121 -e '/ stdnoreturn.h/d' \
123 ${WRKSRC}/lib/Headers/CMakeLists.txt
124 # Activate __MidnightBSD__ macro
125 ${REINPLACE_CMD} -e '/__MidnightBSD__/ s|//| |' \
126 ${WRKSRC}/lib/Basic/Targets/OSTargets.h
129 ${RMDIR} ${STAGEDIR}${PREFIX}/include/clang-tidy/plugin
130 ${RMDIR} ${STAGEDIR}${PREFIX}/include/clang-tidy/misc/ConfusableTable
131 ${INSTALL_PROGRAM} ${WRKDIR}/.build/bin/clang-tblgen \
132 ${STAGEDIR}${PREFIX}/bin/
133 .for F in c-index-test clang-17 clang++ clang-cl clang-cpp \
134 clang-check clang-doc clang-format \
135 clang-extdef-mapping clang-offload-bundler \
136 clang-move clang-refactor clang-rename clang-apply-replacements \
137 clang-scan-deps clang-change-namespace clang-include-fixer clang-query \
138 clang-reorder-fields clang-tidy find-all-symbols clang-linker-wrapper \
139 clang-repl clang-offload-packager clang-pseudo amdgpu-arch nvptx-arch \
140 modularize diagtool pp-trace clang-include-cleaner
141 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${F}
143 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libclang.${LIBEXT}
144 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libclang-cpp.${LIBEXT}
147 ${REINPLACE_CMD} -e 's,/usr/local/,${LOCALBASE}/,' \
148 ${WRKSRC}/lib/Driver/ToolChains/CommonArgs.cpp
150 -e 's|@LOCALBASE@|${LOCALBASE}|' \
151 -e 's|@RAVEN_GCC@|${LOCALBASE}/toolchain/ravensys-gcc/${ASLIB}|' \
152 -e 's|@RAVEN_GCC_TARGET@|${LOCALBASE}/toolchain/ravensys-gcc/${ASLIB}/gcc/${CONFIGURE_TARGET}/13.2.0|' \
153 -e 's|@RAVEN_GXX_HEADERS_DIR@|${LOCALBASE}/toolchain/ravensys-gcc/include/c++/13.2.0|' \
154 -e 's|@RAVEN_TRIPLE@|${CONFIGURE_TARGET}|' \
155 ${WRKSRC}/lib/Driver/ToolChains/DragonFly.cpp \
156 ${WRKSRC}/lib/Driver/ToolChains/FreeBSD.cpp \
157 ${WRKSRC}/lib/Driver/ToolChains/NetBSD.cpp \
158 ${WRKSRC}/lib/Driver/ToolChains/Gnu.cpp \
159 ${WRKSRC}/lib/Lex/InitHeaderSearch.cpp
161 pre-configure-dragonfly:
162 # Remove headers that conflict with /usr/include
165 -e '/ stdalign.h/d' \
170 -e '/ stdnoreturn.h/d' \
171 ${WRKSRC}/lib/Headers/CMakeLists.txt
174 ${MV} ${WRKDIR}/clang-tools-extra-17.0.6.src \
175 ${WRKDIR}/clang-tools-extra
176 # hack around clang 12.0.0 bug
177 ${CP} -a ${WRKDIR}/clang-tools-extra ${WRKSRC}/tools/extra
179 pre-configure-freebsd:
180 # Remove headers that conflict with /usr/include
183 -e '/ stdalign.h/d' \
185 -e '/ stdatomic.h/d' \
189 -e '/ stdnoreturn.h/d' \
191 ${WRKSRC}/lib/Headers/CMakeLists.txt
193 [FILE:842:descriptions/desc.compiler]
194 The LLVM Project is a collection of modular and reusable compiler and
195 toolchain technologies. Despite its name, LLVM has little to do with
196 traditional virtual machines, though it does provide helpful libraries
197 that can be used to build them. The name "LLVM" itself is not an
198 acronym; it is the full name of the project.
200 This package contains Clang is an "LLVM native" C/C++/Objective-C
201 compiler, which aims to deliver amazingly fast compiles (e.g. about 3x
202 faster than GCC when compiling Objective-C code in a debug
203 configuration), extremely useful error and warning messages and to
204 provide a platform for building great source level tools. The Clang
205 Static Analyzer is a tool that automatically finds bugs in your code,
206 and is a great example of the sort of tool that can be built using
207 the Clang frontend as a library to parse C/C++ code.
210 [FILE:558:descriptions/desc.extra]
211 The LLVM Project is a collection of modular and reusable compiler and
212 toolchain technologies. Despite its name, LLVM has little to do with
213 traditional virtual machines, though it does provide helpful libraries
214 that can be used to build them. The name "LLVM" itself is not an
215 acronym; it is the full name of the project.
217 This package holds tools that are developed as part of the LLVM compiler
218 infrastructure project and the Clang frontend. These tools are kept in a
219 separate "extra" repository to allow lighter weight checkouts of the core
223 [FILE:445:descriptions/desc.dynlibs]
224 The LLVM Project is a collection of modular and reusable compiler and
225 toolchain technologies. Despite its name, LLVM has little to do with
226 traditional virtual machines, though it does provide helpful libraries
227 that can be used to build them. The name "LLVM" itself is not an
228 acronym; it is the full name of the project.
230 This package contains the dynamic clang libraries which are potentially
231 dependencies for ports that require clang to build.
235 a78f668a726ae1d3d9a7179996d97b12b90fb76ab9442a43110b972ff7ad9029 21577596 clang-17.0.6.src.tar.xz
236 aa774642415d338d7b77a66fcbad6fd1f77f382dabcb67422a6230614eff1ab9 3269980 clang-tools-extra-17.0.6.src.tar.xz
237 807f069c54dc20cb47b21c1f6acafdd9c649f3ae015609040d6182cab01140f4 8712 cmake-17.0.6.src.tar.xz
240 [FILE:21266:manifests/plist.compiler]
241 %%ONLY-DRAGONFLY%%lib/clang/%%LLVM_MAJOR%%/include/
244 %%ONLY-LINUX%%lib/clang/%%LLVM_MAJOR%%/include/
254 %%ONLY-NETBSD%%lib/clang/%%LLVM_MAJOR%%/include/
270 clang-offload-bundler
271 clang-offload-packager
287 CXCompilationDatabase.h
299 include/clang/APINotes/
300 APINotesYAMLCompiler.h
302 include/clang/ARCMigrate/
319 ASTImporterLookupTable.h
320 ASTImporterSharedState.h
322 ASTMutationListener.h
324 ASTStructuralEquivalence.h
328 AbstractBasicReader.h
329 AbstractBasicReader.inc
330 AbstractBasicWriter.h
331 AbstractBasicWriter.inc
333 AbstractTypeReader.inc
335 AbstractTypeWriter.inc
348 CXXRecordDeclDefinitionBits.def
353 CommentCommandInfo.inc
354 CommentCommandList.inc
355 CommentCommandTraits.h
357 CommentHTMLNamedCharacterReferences.inc
359 CommentHTMLTagsProperties.inc
365 ComparisonCategories.h
367 CurrentSourceLocExprScope.h
373 DeclContextInternals.h
385 DependentDiagnostic.h
386 EvaluatedExprVisitor.h
399 LexicallyOrderedRecursiveASTVisitor.h
402 MangleNumberingContext.h
404 NestedNameSpecifier.h
405 NonTrivialTypeVisitor.h
415 PrettyDeclStackTrace.h
421 RecursiveASTVisitor.h
423 SelectorLocationsKind.h
426 StmtDataCollectors.inc
433 TemplateArgumentVisitor.h
447 include/clang/ASTMatchers/
450 ASTMatchersInternal.h
453 include/clang/ASTMatchers/Dynamic/
458 include/clang/Analysis/
459 AnalysisDeclContext.h
467 ConstructionContext.h
469 MacroExpansionContext.h
472 RetainSummaryManager.h
474 include/clang/Analysis/Analyses/
475 CFGReachabilityAnalysis.h
479 ExprMutationAnalyzer.h
486 ThreadSafetyLogical.h
489 ThreadSafetyTraverse.h
491 UninitializedValues.h
493 UnsafeBufferUsageGadgets.def
494 include/clang/Analysis/DomainSpecific/
497 include/clang/Analysis/FlowSensitive/
502 DataflowAnalysisContext.h
503 DataflowEnvironment.h
518 TypeErasedDataflowAnalysis.h
520 WatchedLiteralsSolver.h
521 include/clang/Analysis/FlowSensitive/Models/
523 UncheckedOptionalAccessModel.h
524 include/clang/Analysis/Support/BumpVector.h
526 AArch64SVEACLETypes.def
531 AttrHasAttributeImpl.inc
534 AttrSubMatchRulesList.inc
535 AttrSubjectMatchRules.h
537 AttributeCommonInfo.h
544 BuiltinsAArch64NeonSVEBridge.def
545 BuiltinsAArch64NeonSVEBridge_cg.def
550 BuiltinsHexagonDep.def
551 BuiltinsHexagonMapCustomDep.def
552 BuiltinsLoongArch.def
558 BuiltinsRISCVVector.def
564 BuiltinsWebAssembly.def
575 CustomizableOptional.h
579 DiagnosticASTKinds.inc
581 DiagnosticAnalysisKinds.inc
582 DiagnosticCategories.h
584 DiagnosticCommentKinds.inc
585 DiagnosticCommonKinds.inc
587 DiagnosticCrossTUKinds.inc
589 DiagnosticDriverKinds.inc
592 DiagnosticFrontendKinds.inc
595 DiagnosticIndexName.inc
597 DiagnosticLexKinds.inc
598 DiagnosticOptions.def
601 DiagnosticParseKinds.inc
602 DiagnosticRefactoring.h
603 DiagnosticRefactoringKinds.inc
605 DiagnosticSemaKinds.inc
606 DiagnosticSerialization.h
607 DiagnosticSerializationKinds.inc
609 ExceptionSpecificationType.h
616 FileSystemStatCache.h
634 OpenCLExtensionTypes.def
651 SanitizerSpecialCaseList.h
657 SourceManagerInternals.h
671 TransformTypeTraits.def
676 WebAssemblyReferenceTypes.def
679 arm_cde_builtin_aliases.inc
680 arm_cde_builtin_cg.inc
681 arm_cde_builtin_sema.inc
684 arm_mve_builtin_aliases.inc
685 arm_mve_builtin_cg.inc
686 arm_mve_builtin_sema.inc
689 arm_sme_builtin_cg.inc
691 arm_sme_sema_rangechecks.inc
692 arm_sve_builtin_cg.inc
694 arm_sve_sema_rangechecks.inc
695 arm_sve_typeflags.inc
696 riscv_sifive_vector_builtin_cg.inc
697 riscv_sifive_vector_builtin_sema.inc
698 riscv_sifive_vector_builtins.inc
699 riscv_vector_builtin_cg.inc
700 riscv_vector_builtin_sema.inc
701 riscv_vector_builtins.inc
702 include/clang/CodeGen/
707 ConstantInitBuilder.h
710 ObjectFilePCHContainerOperations.h
712 include/clang/Config/config.h
713 include/clang/CrossTU/
715 CrossTranslationUnit.h
716 include/clang/DirectoryWatcher/DirectoryWatcher.h
717 include/clang/Driver/
745 include/clang/ExtractAPI/
749 DeclarationFragments.h
750 ExtractAPIActionBase.h
753 TypedefUnderlyingTypeResolver.h
754 include/clang/ExtractAPI/Serialization/
756 SymbolGraphSerializer.h
757 include/clang/Format/Format.h
758 include/clang/Frontend/
761 ChainedDiagnosticConsumer.h
762 CommandLineSourceLoc.h
765 DependencyOutputOptions.h
771 FrontendPluginRegistry.h
772 LayoutOverrideSource.h
773 LogDiagnosticPrinter.h
776 PCHContainerOperations.h
777 PrecompiledPreamble.h
778 PreprocessorOutputOptions.h
780 SARIFDiagnosticPrinter.h
781 SerializedDiagnosticPrinter.h
782 SerializedDiagnosticReader.h
783 SerializedDiagnostics.h
785 TextDiagnosticBuffer.h
786 TextDiagnosticPrinter.h
788 VerifyDiagnosticConsumer.h
789 include/clang/FrontendTool/Utils.h
798 include/clang/IndexSerialization/SerializablePathCollection.h
799 include/clang/Interpreter/
801 PartialTranslationUnit.h
804 CodeCompletionHandler.h
805 DependencyDirectivesScanner.h
807 ExternalPreprocessorSource.h
811 HeaderSearchOptions.h
821 PPConditionalDirectiveRecord.h
823 PreprocessingRecord.h
826 PreprocessorOptions.h
831 VariadicMacroSupport.h
833 AttrParserStringSwitches.inc
834 AttrSubMatchRulesParserStringSwitches.inc
839 RAIIObjectsForParser.h
840 include/clang/Rewrite/Core/
847 include/clang/Rewrite/Frontend/
853 AnalysisBasedWarnings.h
854 AttrParsedAttrImpl.inc
855 AttrParsedAttrKinds.inc
856 AttrParsedAttrList.inc
857 AttrSpellingListIndex.inc
858 AttrTemplateInstantiate.inc
861 CodeCompleteConsumer.h
862 CodeCompleteOptions.h
866 EnterExpressionEvaluationContext.h
868 HLSLExternalSemaSource.h
872 MultiplexExternalSemaSource.h
878 RISCVIntrinsicManager.h
890 TemplateInstCallback.h
893 include/clang/Serialization/
895 ASTDeserializationListener.h
904 InMemoryModuleCache.h
906 ModuleFileExtension.h
908 PCHContainerOperations.h
909 SerializationDiagnostic.h
910 SourceLocationEncoding.h
912 include/clang/StaticAnalyzer/Checkers/
913 BuiltinCheckerRegistration.h
915 MPIFunctionClassifier.h
918 include/clang/StaticAnalyzer/Core/
924 CheckerRegistryData.h
925 PathDiagnosticConsumers.h
926 include/clang/StaticAnalyzer/Core/BugReporter/
928 BugReporterVisitors.h
930 CommonBugCategories.h
931 include/clang/StaticAnalyzer/Core/PathSensitive/
956 RangedConstraintManager.h
958 SMTConstraintManager.h
964 SimpleConstraintManager.h
972 include/clang/StaticAnalyzer/Frontend/
978 include/clang/Support/RISCVVIntrinsicUtils.h
979 include/clang/Testing/
983 include/clang/Tooling/
986 CommonOptionsParser.h
987 CompilationDatabase.h
988 CompilationDatabasePluginRegistry.h
993 JSONCompilationDatabase.h
995 NodeIntrospection.inc
997 RefactoringCallbacks.h
999 StandaloneExecution.h
1000 ToolExecutorPluginRegistry.h
1002 include/clang/Tooling/ASTDiff/
1005 include/clang/Tooling/Core/
1008 include/clang/Tooling/DependencyScanning/
1009 DependencyScanningFilesystem.h
1010 DependencyScanningService.h
1011 DependencyScanningTool.h
1012 DependencyScanningWorker.h
1013 ModuleDepCollector.h
1014 include/clang/Tooling/Inclusions/
1019 include/clang/Tooling/Refactoring/
1023 RecursiveSymbolVisitor.h
1025 RefactoringActionRule.h
1026 RefactoringActionRuleRequirements.h
1027 RefactoringActionRules.h
1028 RefactoringActionRulesInternal.h
1029 RefactoringDiagnostic.h
1031 RefactoringOptionVisitor.h
1032 RefactoringOptions.h
1033 RefactoringResultConsumer.h
1034 RefactoringRuleContext.h
1035 include/clang/Tooling/Refactoring/Extract/
1038 include/clang/Tooling/Refactoring/Rename/
1045 include/clang/Tooling/Syntax/
1051 TokenBufferTokenManager.h
1055 include/clang/Tooling/Transformer/
1061 SourceCodeBuilders.h
1068 libclangARCMigrate.a
1070 libclangASTMatchers.a
1072 libclangAnalysisFlowSensitive.a
1073 libclangAnalysisFlowSensitiveModels.a
1077 libclangDependencyScanning.a
1078 libclangDirectoryWatcher.a
1080 libclangDynamicASTMatchers.a
1082 libclangExtractAPI.a
1085 libclangFrontendTool.a
1087 libclangHandleLLVM.a
1089 libclangIndexSerialization.a
1090 libclangInterpreter.a
1094 libclangRewriteFrontend.a
1096 libclangSerialization.a
1097 libclangStaticAnalyzerCheckers.a
1098 libclangStaticAnalyzerCore.a
1099 libclangStaticAnalyzerFrontend.a
1102 libclangToolingASTDiff.a
1103 libclangToolingCore.a
1104 libclangToolingInclusions.a
1105 libclangToolingInclusionsStdlib.a
1106 libclangToolingRefactoring.a
1107 libclangToolingSyntax.a
1108 libclangTransformer.a
1109 lib/clang/%%LLVM_MAJOR%%/include/
1110 __clang_cuda_builtin_vars.h
1111 __clang_cuda_cmath.h
1112 __clang_cuda_complex_builtins.h
1113 __clang_cuda_device_functions.h
1114 __clang_cuda_intrinsics.h
1115 __clang_cuda_libdevice_declares.h
1117 __clang_cuda_math_forward_declares.h
1118 __clang_cuda_runtime_wrapper.h
1119 __clang_cuda_texture_intrinsics.h
1121 __clang_hip_libdevice_declares.h
1123 __clang_hip_runtime_wrapper.h
1124 __clang_hip_stdlib.h
1125 __stddef_max_align_t.h
1127 __wmmintrin_pclmul.h
1142 arm_neon_sve_bridge.h
1143 arm_sme_draft_spec_subject_to_change.h
1148 avx512bitalgintrin.h
1156 avx512ifmavlintrin.h
1160 avx512vbmivlintrin.h
1161 avx512vlbf16intrin.h
1162 avx512vlbitalgintrin.h
1166 avx512vlfp16intrin.h
1168 avx512vlvbmi2intrin.h
1169 avx512vlvnniintrin.h
1170 avx512vlvp2intersectintrin.h
1172 avx512vp2intersectintrin.h
1173 avx512vpopcntdqintrin.h
1174 avx512vpopcntdqvlintrin.h
1177 avxneconvertintrin.h
1178 avxvnniint16intrin.h
1201 hexagon_circ_brev_intrinsics.h
1207 hvx_hexagon_protos.h
1276 lib/clang/%%LLVM_MAJOR%%/include/cuda_wrappers/
1281 lib/clang/%%LLVM_MAJOR%%/include/cuda_wrappers/bits/
1285 lib/clang/%%LLVM_MAJOR%%/include/llvm_libc_wrappers/
1291 lib/clang/%%LLVM_MAJOR%%/include/openmp_wrappers/
1292 __clang_openmp_device_functions.h
1299 lib/clang/%%LLVM_MAJOR%%/include/ppc_wrappers/
1315 ClangConfigVersion.cmake
1316 ClangTargets-%%CMAKE_BUILD_TYPE%%.cmake
1331 lib/libscanbuild/resources/
1343 bash-autocomplete.sh
1344 clang-format-bbedit.applescript
1345 clang-format-diff.py
1346 clang-format-sublime.py
1351 share/man/man1/scan-build.1.gz
1362 [FILE:12157:manifests/plist.extra]
1364 clang-apply-replacements
1365 clang-change-namespace
1367 clang-include-cleaner
1372 clang-reorder-fields
1381 ClangTidyDiagnosticConsumer.h
1382 ClangTidyForceLinker.h
1384 ClangTidyModuleRegistry.h
1386 ClangTidyProfiling.h
1387 ExpandModularHeadersPPCallbacks.h
1390 NoLintDirectiveHandler.h
1391 include/clang-tidy/abseil/
1394 DurationAdditionCheck.h
1395 DurationComparisonCheck.h
1396 DurationConversionCastCheck.h
1397 DurationDivisionCheck.h
1398 DurationFactoryFloatCheck.h
1399 DurationFactoryScaleCheck.h
1401 DurationSubtractionCheck.h
1402 DurationUnnecessaryConversionCheck.h
1403 FasterStrsplitDelimiterCheck.h
1404 NoInternalDependenciesCheck.h
1406 RedundantStrcatCallsCheck.h
1408 StringFindStartswithCheck.h
1409 StringFindStrContainsCheck.h
1410 TimeComparisonCheck.h
1411 TimeSubtractionCheck.h
1412 UpgradeDurationConversionsCheck.h
1413 include/clang-tidy/altera/
1414 IdDependentBackwardBranchCheck.h
1415 KernelNameRestrictionCheck.h
1416 SingleWorkItemBarrierCheck.h
1417 StructPackAlignCheck.h
1419 include/clang-tidy/android/
1420 CloexecAccept4Check.h
1421 CloexecAcceptCheck.h
1425 CloexecEpollCreate1Check.h
1426 CloexecEpollCreateCheck.h
1428 CloexecInotifyInit1Check.h
1429 CloexecInotifyInitCheck.h
1430 CloexecMemfdCreateCheck.h
1434 CloexecSocketCheck.h
1435 ComparisonInTempFailureRetryCheck.h
1436 include/clang-tidy/boost/UseToStringCheck.h
1437 include/clang-tidy/bugprone/
1438 ArgumentCommentCheck.h
1439 AssertSideEffectCheck.h
1440 AssignmentInIfConditionCheck.h
1441 BadSignalToKillThreadCheck.h
1442 BoolPointerImplicitConversionCheck.h
1444 CopyConstructorInitCheck.h
1445 DanglingHandleCheck.h
1446 DynamicStaticInitializersCheck.h
1447 EasilySwappableParametersCheck.h
1449 ExceptionEscapeCheck.h
1451 ForwardDeclarationNamespaceCheck.h
1452 ForwardingReferenceOverloadCheck.h
1453 ImplicitWideningOfMultiplicationResultCheck.h
1454 InaccurateEraseCheck.h
1455 IncorrectRoundingsCheck.h
1457 IntegerDivisionCheck.h
1458 LambdaFunctionNameCheck.h
1459 MacroParenthesesCheck.h
1460 MacroRepeatedSideEffectsCheck.h
1461 MisplacedOperatorInStrlenInAllocCheck.h
1462 MisplacedPointerArithmeticInAllocCheck.h
1463 MisplacedWideningCastCheck.h
1464 MoveForwardingReferenceCheck.h
1465 MultipleNewInOneExpressionCheck.h
1466 MultipleStatementMacroCheck.h
1468 NonZeroEnumToBoolConversionCheck.h
1469 NotNullTerminatedResultCheck.h
1470 ParentVirtualCallCheck.h
1472 RedundantBranchConditionCheck.h
1473 ReservedIdentifierCheck.h
1474 SharedPtrArrayMismatchCheck.h
1475 SignalHandlerCheck.h
1476 SignedCharMisuseCheck.h
1477 SizeofContainerCheck.h
1478 SizeofExpressionCheck.h
1479 SmartPtrArrayMismatchCheck.h
1480 SpuriouslyWakeUpFunctionsCheck.h
1481 StandaloneEmptyCheck.h
1482 StringConstructorCheck.h
1483 StringIntegerAssignmentCheck.h
1484 StringLiteralWithEmbeddedNulCheck.h
1485 StringviewNullptrCheck.h
1486 SuspiciousEnumUsageCheck.h
1487 SuspiciousIncludeCheck.h
1488 SuspiciousMemoryComparisonCheck.h
1489 SuspiciousMemsetUsageCheck.h
1490 SuspiciousMissingCommaCheck.h
1491 SuspiciousReallocUsageCheck.h
1492 SuspiciousSemicolonCheck.h
1493 SuspiciousStringCompareCheck.h
1494 SwappedArgumentsCheck.h
1495 SwitchMissingDefaultCaseCheck.h
1496 TerminatingContinueCheck.h
1497 ThrowKeywordMissingCheck.h
1498 TooSmallLoopVariableCheck.h
1499 UncheckedOptionalAccessCheck.h
1500 UndefinedMemoryManipulationCheck.h
1501 UndelegatedConstructorCheck.h
1502 UnhandledExceptionAtNewCheck.h
1503 UnhandledSelfAssignmentCheck.h
1504 UniquePtrArrayMismatchCheck.h
1505 UnsafeFunctionsCheck.h
1507 UnusedReturnValueCheck.h
1509 VirtualNearMissCheck.h
1510 include/clang-tidy/cert/
1511 CommandProcessorCheck.h
1512 DefaultOperatorNewAlignmentCheck.h
1513 DontModifyStdNamespaceCheck.h
1515 LimitedRandomnessCheck.h
1517 NonTrivialTypesLibcMemoryCallsCheck.h
1518 PostfixOperatorCheck.h
1519 ProperlySeededRandomGeneratorCheck.h
1521 StaticObjectExceptionCheck.h
1523 ThrownExceptionTypeCheck.h
1524 VariadicFunctionDefCheck.h
1525 include/clang-tidy/concurrency/
1527 ThreadCanceltypeAsynchronousCheck.h
1528 include/clang-tidy/cppcoreguidelines/
1529 AvoidCapturingLambdaCoroutinesCheck.h
1530 AvoidConstOrRefDataMembersCheck.h
1533 AvoidNonConstGlobalVariablesCheck.h
1534 AvoidReferenceCoroutineParametersCheck.h
1535 InitVariablesCheck.h
1536 InterfacesGlobalInitCheck.h
1538 MisleadingCaptureDefaultByValueCheck.h
1539 MissingStdForwardCheck.h
1540 NarrowingConversionsCheck.h
1543 PreferMemberInitializerCheck.h
1544 ProBoundsArrayToPointerDecayCheck.h
1545 ProBoundsConstantArrayIndexCheck.h
1546 ProBoundsPointerArithmeticCheck.h
1547 ProTypeConstCastCheck.h
1548 ProTypeCstyleCastCheck.h
1549 ProTypeMemberInitCheck.h
1550 ProTypeReinterpretCastCheck.h
1551 ProTypeStaticCastDowncastCheck.h
1552 ProTypeUnionAccessCheck.h
1553 ProTypeVarargCheck.h
1554 RvalueReferenceParamNotMovedCheck.h
1556 SpecialMemberFunctionsCheck.h
1557 VirtualClassDestructorCheck.h
1558 include/clang-tidy/darwin/
1559 AvoidSpinlockCheck.h
1560 DispatchOnceNonstaticCheck.h
1561 include/clang-tidy/fuchsia/
1562 DefaultArgumentsCallsCheck.h
1563 DefaultArgumentsDeclarationsCheck.h
1564 MultipleInheritanceCheck.h
1565 OverloadedOperatorCheck.h
1566 StaticallyConstructedObjectsCheck.h
1567 TrailingReturnCheck.h
1568 VirtualInheritanceCheck.h
1569 include/clang-tidy/google/
1570 AvoidCStyleCastsCheck.h
1571 AvoidNSObjectNewCheck.h
1572 AvoidThrowingObjCExceptionCheck.h
1573 AvoidUnderscoreInGoogletestNameCheck.h
1574 DefaultArgumentsCheck.h
1575 ExplicitConstructorCheck.h
1576 ExplicitMakePairCheck.h
1577 FunctionNamingCheck.h
1578 GlobalNamesInHeadersCheck.h
1579 GlobalVariableDeclarationCheck.h
1581 OverloadedUnaryAndCheck.h
1583 UnnamedNamespaceInHeaderCheck.h
1584 UpgradeGoogletestCaseCheck.h
1585 UsingNamespaceDirectiveCheck.h
1586 include/clang-tidy/hicpp/
1587 ExceptionBaseclassCheck.h
1588 MultiwayPathsCoveredCheck.h
1590 SignedBitwiseCheck.h
1591 include/clang-tidy/linuxkernel/MustCheckErrsCheck.h
1592 include/clang-tidy/llvm/
1595 PreferIsaOrDynCastInConditionalsCheck.h
1596 PreferRegisterOverUnsignedCheck.h
1598 include/clang-tidy/llvmlibc/
1599 CalleeNamespaceCheck.h
1600 ImplementationInNamespaceCheck.h
1601 InlineFunctionDeclCheck.h
1602 RestrictSystemLibcHeadersCheck.h
1603 include/clang-tidy/misc/
1604 ConfusableIdentifierCheck.h
1605 ConstCorrectnessCheck.h
1606 DefinitionsInHeadersCheck.h
1607 HeaderIncludeCycleCheck.h
1608 IncludeCleanerCheck.h
1609 MisleadingBidirectional.h
1610 MisleadingIdentifier.h
1611 MisplacedConstCheck.h
1612 NewDeleteOverloadsCheck.h
1614 NonCopyableObjects.h
1615 NonPrivateMemberVariablesInClassesCheck.h
1616 RedundantExpressionCheck.h
1618 ThrowByValueCatchByReferenceCheck.h
1619 UnconventionalAssignOperatorCheck.h
1620 UniqueptrResetReleaseCheck.h
1621 UnusedAliasDeclsCheck.h
1622 UnusedParametersCheck.h
1623 UnusedUsingDeclsCheck.h
1624 UseAnonymousNamespaceCheck.h
1625 include/clang-tidy/modernize/
1628 ConcatNestedNamespacesCheck.h
1629 DeprecatedHeadersCheck.h
1630 DeprecatedIosBaseAliasesCheck.h
1631 IntegralLiteralExpressionMatcher.h
1639 RawStringLiteralCheck.h
1640 RedundantVoidArgCheck.h
1641 ReplaceAutoPtrCheck.h
1642 ReplaceDisallowCopyAndAssignMacroCheck.h
1643 ReplaceRandomShuffleCheck.h
1644 ReturnBracedInitListCheck.h
1647 UnaryStaticAssertCheck.h
1649 UseBoolLiteralsCheck.h
1650 UseDefaultMemberInitCheck.h
1652 UseEqualsDefaultCheck.h
1653 UseEqualsDeleteCheck.h
1659 UseTrailingReturnTypeCheck.h
1660 UseTransparentFunctorsCheck.h
1661 UseUncaughtExceptionsCheck.h
1663 include/clang-tidy/mpi/
1666 include/clang-tidy/objc/
1668 AvoidNSErrorInitCheck.h
1669 DeallocInCategoryCheck.h
1670 ForbiddenSubclassingCheck.h
1672 NSDateFormatterCheck.h
1673 NSInvocationArgumentLifetimeCheck.h
1674 PropertyDeclarationCheck.h
1676 include/clang-tidy/openmp/
1677 ExceptionEscapeCheck.h
1678 UseDefaultNoneCheck.h
1679 include/clang-tidy/performance/
1681 FasterStringFindCheck.h
1683 ImplicitConversionInLoopCheck.h
1684 InefficientAlgorithmCheck.h
1685 InefficientStringConcatenationCheck.h
1686 InefficientVectorOperationCheck.h
1688 MoveConstructorInitCheck.h
1689 NoAutomaticMoveCheck.h
1691 NoexceptDestructorCheck.h
1692 NoexceptFunctionBaseCheck.h
1693 NoexceptMoveConstructorCheck.h
1695 TriviallyDestructibleCheck.h
1696 TypePromotionInMathFnCheck.h
1697 UnnecessaryCopyInitialization.h
1698 UnnecessaryValueParamCheck.h
1699 include/clang-tidy/portability/
1700 RestrictSystemIncludesCheck.h
1701 SIMDIntrinsicsCheck.h
1702 StdAllocatorConstCheck.h
1703 include/clang-tidy/readability/
1704 AvoidConstParamsInDecls.h
1705 AvoidUnconditionalPreprocessorIfCheck.h
1706 BracesAroundStatementsCheck.h
1707 ConstReturnTypeCheck.h
1708 ContainerContainsCheck.h
1709 ContainerDataPointerCheck.h
1710 ContainerSizeEmptyCheck.h
1711 ConvertMemberFunctionsToStatic.h
1712 DeleteNullPointerCheck.h
1713 DuplicateIncludeCheck.h
1714 ElseAfterReturnCheck.h
1715 FunctionCognitiveComplexityCheck.h
1717 IdentifierLengthCheck.h
1718 IdentifierNamingCheck.h
1719 ImplicitBoolConversionCheck.h
1720 InconsistentDeclarationParameterNameCheck.h
1721 IsolateDeclarationCheck.h
1723 MakeMemberFunctionConstCheck.h
1724 MisleadingIndentationCheck.h
1725 MisplacedArrayIndexCheck.h
1726 NamedParameterCheck.h
1727 NamespaceCommentCheck.h
1728 NonConstParameterCheck.h
1729 OperatorsRepresentationCheck.h
1730 QualifiedAutoCheck.h
1731 RedundantAccessSpecifiersCheck.h
1732 RedundantControlFlowCheck.h
1733 RedundantDeclarationCheck.h
1734 RedundantFunctionPtrDereferenceCheck.h
1735 RedundantMemberInitCheck.h
1736 RedundantPreprocessorCheck.h
1737 RedundantSmartptrGetCheck.h
1738 RedundantStringCStrCheck.h
1739 RedundantStringInitCheck.h
1740 SimplifyBooleanExprCheck.h
1741 SimplifySubscriptExprCheck.h
1742 StaticAccessedThroughInstanceCheck.h
1743 StaticDefinitionInAnonymousNamespaceCheck.h
1744 StringCompareCheck.h
1745 SuspiciousCallArgumentCheck.h
1746 UniqueptrDeleteReleaseCheck.h
1747 UppercaseLiteralSuffixCheck.h
1748 UseAnyOfAllOfCheck.h
1749 include/clang-tidy/tool/ClangTidyMain.h
1750 include/clang-tidy/utils/
1755 ExceptionSpecAnalyzer.h
1757 FileExtensionsUtils.h
1759 FormatStringConverter.h
1767 RenamerClangTidyCheck.h
1768 TransformerClangTidyCheck.h
1771 include/clang-tidy/zircon/TemporaryObjectsCheck.h
1773 libclangApplyReplacements.a
1774 libclangChangeNamespace.a
1776 libclangIncludeCleaner.a
1777 libclangIncludeFixer.a
1778 libclangIncludeFixerPlugin.a
1783 libclangPseudoGrammar.a
1785 libclangReorderFields.a
1787 libclangTidyAbseilModule.a
1788 libclangTidyAlteraModule.a
1789 libclangTidyAndroidModule.a
1790 libclangTidyBoostModule.a
1791 libclangTidyBugproneModule.a
1792 libclangTidyCERTModule.a
1793 libclangTidyConcurrencyModule.a
1794 libclangTidyCppCoreGuidelinesModule.a
1795 libclangTidyDarwinModule.a
1796 libclangTidyFuchsiaModule.a
1797 libclangTidyGoogleModule.a
1798 libclangTidyHICPPModule.a
1799 libclangTidyLLVMLibcModule.a
1800 libclangTidyLLVMModule.a
1801 libclangTidyLinuxKernelModule.a
1802 libclangTidyMPIModule.a
1804 libclangTidyMiscModule.a
1805 libclangTidyModernizeModule.a
1806 libclangTidyObjCModule.a
1807 libclangTidyOpenMPModule.a
1808 libclangTidyPerformanceModule.a
1809 libclangTidyPlugin.a
1810 libclangTidyPortabilityModule.a
1811 libclangTidyReadabilityModule.a
1813 libclangTidyZirconModule.a
1816 clang-doc-default-stylesheet.css
1817 clang-include-fixer.el
1818 clang-include-fixer.py
1821 run-find-all-symbols.py
1824 [FILE:95:manifests/plist.dynlibs]
1826 libclang-cpp.so.%%LLVM_MAJOR%%
1827 libclang.so.%%LLVM_MAJOR%%
1828 libclang.so.%%LLVM_RELEASE%%
1831 [FILE:425:patches/patch-lib_Basic_Targets_OSTargets.h]
1832 --- lib/Basic/Targets/OSTargets.h.orig 2023-11-28 08:52:28 UTC
1833 +++ lib/Basic/Targets/OSTargets.h
1834 @@ -213,6 +213,7 @@ protected:
1835 if (CCVersion == 0U)
1836 CCVersion = Release * 100000U + 1U;
1838 +// Builder.defineMacro("__MidnightBSD__", "3");
1839 Builder.defineMacro("__FreeBSD__", Twine(Release));
1840 Builder.defineMacro("__FreeBSD_cc_version", Twine(CCVersion));
1841 Builder.defineMacro("__KPRINTF_ATTRIBUTE__");
1844 [FILE:2844:patches/patch-lib_Driver_ToolChains_DragonFly.cpp]
1845 --- lib/Driver/ToolChains/DragonFly.cpp.orig 2023-11-28 08:52:28 UTC
1846 +++ lib/Driver/ToolChains/DragonFly.cpp
1847 @@ -71,7 +71,7 @@ void dragonfly::Linker::ConstructJob(Com
1848 CmdArgs.push_back("-Bshareable");
1849 else if (!Args.hasArg(options::OPT_r)) {
1850 CmdArgs.push_back("-dynamic-linker");
1851 - CmdArgs.push_back("/usr/libexec/ld-elf.so.2");
1852 + CmdArgs.push_back("/libexec/ld-elf.so.2");
1854 CmdArgs.push_back("--hash-style=gnu");
1855 CmdArgs.push_back("--enable-new-dtags");
1856 @@ -115,19 +115,29 @@ void dragonfly::Linker::ConstructJob(Com
1857 Args.MakeArgString(getToolChain().GetFilePath("crtbegin.o")));
1860 + if (D.isUsingLTO()) {
1861 + assert(!Inputs.empty() && "Must have at least one input.");
1862 + addLTOOptions(getToolChain(), Args, CmdArgs, Output, Inputs[0],
1863 + D.getLTOMode() == LTOK_Thin);
1866 Args.AddAllArgs(CmdArgs,
1867 {options::OPT_L, options::OPT_T_Group, options::OPT_e});
1869 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs, JA);
1871 + CmdArgs.push_back("-L@RAVEN_GCC@");
1872 + CmdArgs.push_back("-L@LOCALBASE@/lib");
1874 + if (!Args.hasArg(options::OPT_static)) {
1875 + CmdArgs.push_back("-rpath");
1876 + CmdArgs.push_back("@RAVEN_GCC@");
1877 + CmdArgs.push_back("-rpath");
1878 + CmdArgs.push_back("@LOCALBASE@/lib");
1881 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs,
1883 - CmdArgs.push_back("-L/usr/lib/gcc80");
1885 - if (!Args.hasArg(options::OPT_static)) {
1886 - CmdArgs.push_back("-rpath");
1887 - CmdArgs.push_back("/usr/lib/gcc80");
1891 if (getToolChain().ShouldLinkCXXStdlib(Args))
1892 @@ -147,16 +157,7 @@ void dragonfly::Linker::ConstructJob(Com
1893 CmdArgs.push_back("-lgcc");
1894 CmdArgs.push_back("-lgcc_eh");
1896 - if (Args.hasArg(options::OPT_shared_libgcc)) {
1897 - CmdArgs.push_back("-lgcc_pic");
1898 - if (!Args.hasArg(options::OPT_shared))
1899 - CmdArgs.push_back("-lgcc");
1901 - CmdArgs.push_back("-lgcc");
1902 - CmdArgs.push_back("--as-needed");
1903 - CmdArgs.push_back("-lgcc_pic");
1904 - CmdArgs.push_back("--no-as-needed");
1906 + CmdArgs.push_back("-lgcc_s");
1910 @@ -192,7 +193,8 @@ DragonFly::DragonFly(const Driver &D, co
1912 getFilePaths().push_back(getDriver().Dir + "/../lib");
1913 getFilePaths().push_back("/usr/lib");
1914 - getFilePaths().push_back("/usr/lib/gcc80");
1915 + getFilePaths().push_back("@RAVEN_GCC@");
1916 + getFilePaths().push_back("@RAVEN_GCC_TARGET@");
1919 Tool *DragonFly::buildAssembler() const {
1920 @@ -202,3 +204,5 @@ Tool *DragonFly::buildAssembler() const
1921 Tool *DragonFly::buildLinker() const {
1922 return new tools::dragonfly::Linker(*this);
1925 +bool DragonFly::HasNativeLLVMSupport() const { return true; }
1928 [FILE:389:patches/patch-lib_Driver_ToolChains_DragonFly.h]
1929 --- lib/Driver/ToolChains/DragonFly.h.orig 2023-11-28 08:52:28 UTC
1930 +++ lib/Driver/ToolChains/DragonFly.h
1931 @@ -52,6 +52,7 @@ class LLVM_LIBRARY_VISIBILITY DragonFly
1933 DragonFly(const Driver &D, const llvm::Triple &Triple,
1934 const llvm::opt::ArgList &Args);
1935 + bool HasNativeLLVMSupport() const override;
1937 bool IsMathErrnoDefault() const override { return false; }
1941 [FILE:2566:patches/patch-lib_Driver_ToolChains_FreeBSD.cpp]
1942 --- lib/Driver/ToolChains/FreeBSD.cpp.orig 2023-11-28 08:52:28 UTC
1943 +++ lib/Driver/ToolChains/FreeBSD.cpp
1944 @@ -285,6 +285,16 @@ void freebsd::Linker::ConstructJob(Compi
1945 addLinkerCompressDebugSectionsOption(ToolChain, Args, CmdArgs);
1946 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA);
1948 + CmdArgs.push_back("-L@RAVEN_GCC@");
1949 + CmdArgs.push_back("-L@LOCALBASE@/lib");
1951 + if (!Args.hasArg(options::OPT_static)) {
1952 + CmdArgs.push_back("-rpath");
1953 + CmdArgs.push_back("@RAVEN_GCC@");
1954 + CmdArgs.push_back("-rpath");
1955 + CmdArgs.push_back("@LOCALBASE@/lib");
1958 unsigned Major = ToolChain.getTriple().getOSMajorVersion();
1959 bool Profiling = Args.hasArg(options::OPT_pg) && Major != 0 && Major < 14;
1960 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs,
1961 @@ -381,6 +391,8 @@ FreeBSD::FreeBSD(const Driver &D, const
1962 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib32"));
1964 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib"));
1965 + getFilePaths().push_back("@RAVEN_GCC@");
1966 + getFilePaths().push_back("@RAVEN_GCC_TARGET@");
1969 unsigned FreeBSD::GetDefaultDwarfVersion() const {
1970 @@ -424,22 +436,19 @@ void FreeBSD::AddClangSystemIncludeArgs(
1971 concat(D.SysRoot, "/usr/include"));
1974 +void FreeBSD::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
1975 + llvm::opt::ArgStringList &CC1Args) const {
1976 + addSystemInclude(DriverArgs, CC1Args, "@RAVEN_GXX_HEADERS_DIR@");
1977 + addSystemInclude(DriverArgs, CC1Args, "@RAVEN_GXX_HEADERS_DIR@/backward");
1978 + addSystemInclude(DriverArgs, CC1Args, "@RAVEN_GXX_HEADERS_DIR@/@RAVEN_TRIPLE@");
1981 void FreeBSD::addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
1982 llvm::opt::ArgStringList &CC1Args) const {
1983 addSystemInclude(DriverArgs, CC1Args,
1984 concat(getDriver().SysRoot, "/usr/include/c++/v1"));
1987 -void FreeBSD::AddCXXStdlibLibArgs(const ArgList &Args,
1988 - ArgStringList &CmdArgs) const {
1989 - unsigned Major = getTriple().getOSMajorVersion();
1990 - bool Profiling = Args.hasArg(options::OPT_pg) && Major != 0 && Major < 14;
1992 - CmdArgs.push_back(Profiling ? "-lc++_p" : "-lc++");
1993 - if (Args.hasArg(options::OPT_fexperimental_library))
1994 - CmdArgs.push_back("-lc++experimental");
1997 void FreeBSD::AddCudaIncludeArgs(const ArgList &DriverArgs,
1998 ArgStringList &CC1Args) const {
1999 CudaInstallation->AddCudaIncludeArgs(DriverArgs, CC1Args);
2002 [FILE:960:patches/patch-lib_Driver_ToolChains_FreeBSD.h]
2003 --- lib/Driver/ToolChains/FreeBSD.h.orig 2023-11-28 08:52:28 UTC
2004 +++ lib/Driver/ToolChains/FreeBSD.h
2005 @@ -66,13 +66,13 @@ public:
2006 return ToolChain::RLT_CompilerRT;
2008 CXXStdlibType GetDefaultCXXStdlibType() const override {
2009 - return ToolChain::CST_Libcxx;
2010 + return ToolChain::CST_Libstdcxx;
2013 + void addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
2014 + llvm::opt::ArgStringList &CC1Args) const override;
2015 void addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
2016 llvm::opt::ArgStringList &CC1Args) const override;
2017 - void AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args,
2018 - llvm::opt::ArgStringList &CmdArgs) const override;
2019 void AddCudaIncludeArgs(const llvm::opt::ArgList &DriverArgs,
2020 llvm::opt::ArgStringList &CC1Args) const override;
2021 void AddHIPIncludeArgs(const llvm::opt::ArgList &DriverArgs,
2024 [FILE:697:patches/patch-lib_Driver_ToolChains_Gnu.cpp]
2025 --- lib/Driver/ToolChains/Gnu.cpp.orig 2023-11-28 08:52:28 UTC
2026 +++ lib/Driver/ToolChains/Gnu.cpp
2027 @@ -461,6 +461,9 @@ void tools::gnutools::Linker::ConstructJ
2029 CmdArgs.push_back("-static");
2031 + CmdArgs.push_back("-rpath");
2032 + CmdArgs.push_back("@RAVEN_GCC@");
2034 if (Args.hasArg(options::OPT_rdynamic))
2035 CmdArgs.push_back("-export-dynamic");
2037 @@ -584,6 +587,8 @@ void tools::gnutools::Linker::ConstructJ
2039 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_r)) {
2040 if (!Args.hasArg(options::OPT_nodefaultlibs)) {
2041 + CmdArgs.push_back("-L@RAVEN_GCC@");
2043 if (IsStatic || IsStaticPIE)
2044 CmdArgs.push_back("--start-group");
2048 [FILE:3429:patches/patch-lib_Driver_ToolChains_NetBSD.cpp]
2049 --- lib/Driver/ToolChains/NetBSD.cpp.orig 2023-11-28 08:52:28 UTC
2050 +++ lib/Driver/ToolChains/NetBSD.cpp
2051 @@ -265,10 +265,15 @@ void netbsd::Linker::ConstructJob(Compil
2052 bool NeedsXRayDeps = addXRayRuntime(ToolChain, Args, CmdArgs);
2053 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA);
2055 - const SanitizerArgs &SanArgs = ToolChain.getSanitizerArgs(Args);
2056 - if (SanArgs.needsSharedRt()) {
2057 + CmdArgs.push_back("-L@RAVEN_GCC_TARGET@");
2058 + CmdArgs.push_back("-L@RAVEN_GCC@");
2059 + CmdArgs.push_back("-L@LOCALBASE@/lib");
2061 + if (!Args.hasArg(options::OPT_static)) {
2062 + CmdArgs.push_back("-rpath");
2063 + CmdArgs.push_back("@RAVEN_GCC@");
2064 CmdArgs.push_back("-rpath");
2065 - CmdArgs.push_back(Args.MakeArgString(ToolChain.getCompilerRTPath()));
2066 + CmdArgs.push_back("@LOCALBASE@/lib");
2069 bool useLibgcc = true;
2070 @@ -286,7 +291,6 @@ void netbsd::Linker::ConstructJob(Compil
2071 case llvm::Triple::sparcv9:
2072 case llvm::Triple::x86:
2073 case llvm::Triple::x86_64:
2074 - useLibgcc = false;
2078 @@ -310,21 +314,20 @@ void netbsd::Linker::ConstructJob(Compil
2079 linkXRayRuntimeDeps(ToolChain, CmdArgs);
2080 if (Args.hasArg(options::OPT_pthread))
2081 CmdArgs.push_back("-lpthread");
2082 - CmdArgs.push_back("-lc");
2083 + if (!Args.hasArg(options::OPT_nolibc)) {
2084 + CmdArgs.push_back("-lc");
2088 - if (Args.hasArg(options::OPT_static)) {
2089 + if (Args.hasArg(options::OPT_static) ||
2090 + Args.hasArg(options::OPT_static_libgcc)) {
2091 // libgcc_eh depends on libc, so resolve as much as possible,
2092 // pull in any new requirements from libc and then get the rest
2094 - CmdArgs.push_back("-lgcc_eh");
2095 - CmdArgs.push_back("-lc");
2096 CmdArgs.push_back("-lgcc");
2097 + CmdArgs.push_back("-lgcc_eh");
2099 - CmdArgs.push_back("-lgcc");
2100 - CmdArgs.push_back("--as-needed");
2101 CmdArgs.push_back("-lgcc_s");
2102 - CmdArgs.push_back("--no-as-needed");
2106 @@ -408,24 +411,6 @@ Tool *NetBSD::buildAssembler() const {
2107 Tool *NetBSD::buildLinker() const { return new tools::netbsd::Linker(*this); }
2109 ToolChain::CXXStdlibType NetBSD::GetDefaultCXXStdlibType() const {
2110 - switch (getArch()) {
2111 - case llvm::Triple::aarch64:
2112 - case llvm::Triple::aarch64_be:
2113 - case llvm::Triple::arm:
2114 - case llvm::Triple::armeb:
2115 - case llvm::Triple::thumb:
2116 - case llvm::Triple::thumbeb:
2117 - case llvm::Triple::ppc:
2118 - case llvm::Triple::ppc64:
2119 - case llvm::Triple::ppc64le:
2120 - case llvm::Triple::sparc:
2121 - case llvm::Triple::sparcv9:
2122 - case llvm::Triple::x86:
2123 - case llvm::Triple::x86_64:
2124 - return ToolChain::CST_Libcxx;
2128 return ToolChain::CST_Libstdcxx;
2131 @@ -486,8 +471,9 @@ void NetBSD::addLibCxxIncludePaths(const
2133 void NetBSD::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
2134 llvm::opt::ArgStringList &CC1Args) const {
2135 - addLibStdCXXIncludePaths(getDriver().SysRoot + "/usr/include/g++", "", "",
2136 - DriverArgs, CC1Args);
2137 + addSystemInclude(DriverArgs, CC1Args, "@RAVEN_GXX_HEADERS_DIR@");
2138 + addSystemInclude(DriverArgs, CC1Args, "@RAVEN_GXX_HEADERS_DIR@/backward");
2139 + addSystemInclude(DriverArgs, CC1Args, "@RAVEN_GXX_HEADERS_DIR@/@RAVEN_TRIPLE@");
2142 llvm::ExceptionHandling NetBSD::GetExceptionModel(const ArgList &Args) const {
2145 [FILE:597:patches/patch-lib_Frontend_InitPreprocessor.cpp]
2146 --- lib/Frontend/InitPreprocessor.cpp.orig 2023-11-28 08:52:28 UTC
2147 +++ lib/Frontend/InitPreprocessor.cpp
2148 @@ -777,7 +777,8 @@ static void InitializePredefinedMacros(c
2149 Builder.defineMacro("__GNUC__", Twine(GNUCMajor));
2150 Builder.defineMacro("__GNUC_MINOR__", Twine(GNUCMinor));
2151 Builder.defineMacro("__GNUC_PATCHLEVEL__", Twine(GNUCPatch));
2152 - Builder.defineMacro("__GXX_ABI_VERSION", "1002");
2153 + // match ABI of Ravenports GCC compiler
2154 + Builder.defineMacro("__GXX_ABI_VERSION", "1013");
2156 if (LangOpts.CPlusPlus) {
2157 Builder.defineMacro("__GNUG__", Twine(GNUCMajor));
2160 [FILE:603:patches/patch-lib_Interpreter_IncrementalParser.cpp]
2161 --- lib/Interpreter/IncrementalParser.cpp.orig 2023-11-28 08:52:28 UTC
2162 +++ lib/Interpreter/IncrementalParser.cpp
2163 @@ -125,7 +125,11 @@ public:
2164 switch (CI.getFrontendOpts().ProgramAction) {
2166 Err = llvm::createStringError(
2167 +#if defined __DragonFly__ || defined __NetBSD__
2168 + std::errc::operation_not_supported,
2170 std::errc::state_not_recoverable,
2172 "Driver initialization failed. "
2173 "Incremental mode for action %d is not supported",
2174 CI.getFrontendOpts().ProgramAction);
2177 [FILE:576:patches/patch-lib_Lex_InitHeaderSearch.cpp]
2178 --- lib/Lex/InitHeaderSearch.cpp.orig 2023-11-28 08:52:28 UTC
2179 +++ lib/Lex/InitHeaderSearch.cpp
2180 @@ -366,7 +366,9 @@ void InitHeaderSearch::AddDefaultCPlusPl
2183 case llvm::Triple::DragonFly:
2184 - AddPath("/usr/include/c++/5.0", CXXSystem, false);
2185 + AddPath("@RAVEN_GXX_HEADERS_DIR@", CXXSystem, false);
2186 + AddPath("@RAVEN_GXX_HEADERS_DIR@/backward", CXXSystem, false);
2187 + AddPath("@RAVEN_GXX_HEADERS_DIR@/" + triple.getTriple(), CXXSystem, false);
2189 case llvm::Triple::Minix:
2190 AddGnuCPlusPlusIncludePaths("/usr/gnu/include/c++/4.4.3",