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.5/
13 http://llvm.org/releases/17.0.5/
14 DISTFILE[1]= clang-17.0.5.src.tar.xz:main
15 DISTFILE[2]= clang-tools-extra-17.0.5.src.tar.xz:main
16 DISTFILE[3]= cmake-17.0.5.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.5.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.5"
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.5.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.5.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 66b45502b9d570fda7feefe3595e34f0bf0c49df84f4298c7735289427f17bcb 21574748 clang-17.0.5.src.tar.xz
236 599cf5ae037e8da4107efadccb996fd7f8e42a3ae96f8b09514560b840b8ab89 3270140 clang-tools-extra-17.0.5.src.tar.xz
237 734ea7767ebda642d22c878024c9fb14ae0521d048bdba54e463bb73260adaef 8712 cmake-17.0.5.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:998:patches/patch-lib_Basic_Targets_OSTargets.h]
1832 --- lib/Basic/Targets/OSTargets.h.orig 2023-10-31 08:00:30 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__");
1842 @@ -425,12 +426,22 @@ protected:
1843 Builder.defineMacro("__unix__");
1844 if (Opts.POSIXThreads)
1845 Builder.defineMacro("_REENTRANT");
1846 + if (this->HasFloat128)
1847 + Builder.defineMacro("__FLOAT128__");
1851 NetBSDTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
1852 : OSTargetInfo<Target>(Triple, Opts) {
1853 this->MCountName = "__mcount";
1854 + switch (Triple.getArch()) {
1857 + case llvm::Triple::x86:
1858 + case llvm::Triple::x86_64:
1859 + this->HasFloat128 = true;
1867 [FILE:2844:patches/patch-lib_Driver_ToolChains_DragonFly.cpp]
1868 --- lib/Driver/ToolChains/DragonFly.cpp.orig 2023-10-31 08:00:30 UTC
1869 +++ lib/Driver/ToolChains/DragonFly.cpp
1870 @@ -71,7 +71,7 @@ void dragonfly::Linker::ConstructJob(Com
1871 CmdArgs.push_back("-Bshareable");
1872 else if (!Args.hasArg(options::OPT_r)) {
1873 CmdArgs.push_back("-dynamic-linker");
1874 - CmdArgs.push_back("/usr/libexec/ld-elf.so.2");
1875 + CmdArgs.push_back("/libexec/ld-elf.so.2");
1877 CmdArgs.push_back("--hash-style=gnu");
1878 CmdArgs.push_back("--enable-new-dtags");
1879 @@ -115,19 +115,29 @@ void dragonfly::Linker::ConstructJob(Com
1880 Args.MakeArgString(getToolChain().GetFilePath("crtbegin.o")));
1883 + if (D.isUsingLTO()) {
1884 + assert(!Inputs.empty() && "Must have at least one input.");
1885 + addLTOOptions(getToolChain(), Args, CmdArgs, Output, Inputs[0],
1886 + D.getLTOMode() == LTOK_Thin);
1889 Args.AddAllArgs(CmdArgs,
1890 {options::OPT_L, options::OPT_T_Group, options::OPT_e});
1892 AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs, JA);
1894 + CmdArgs.push_back("-L@RAVEN_GCC@");
1895 + CmdArgs.push_back("-L@LOCALBASE@/lib");
1897 + if (!Args.hasArg(options::OPT_static)) {
1898 + CmdArgs.push_back("-rpath");
1899 + CmdArgs.push_back("@RAVEN_GCC@");
1900 + CmdArgs.push_back("-rpath");
1901 + CmdArgs.push_back("@LOCALBASE@/lib");
1904 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs,
1906 - CmdArgs.push_back("-L/usr/lib/gcc80");
1908 - if (!Args.hasArg(options::OPT_static)) {
1909 - CmdArgs.push_back("-rpath");
1910 - CmdArgs.push_back("/usr/lib/gcc80");
1914 if (getToolChain().ShouldLinkCXXStdlib(Args))
1915 @@ -147,16 +157,7 @@ void dragonfly::Linker::ConstructJob(Com
1916 CmdArgs.push_back("-lgcc");
1917 CmdArgs.push_back("-lgcc_eh");
1919 - if (Args.hasArg(options::OPT_shared_libgcc)) {
1920 - CmdArgs.push_back("-lgcc_pic");
1921 - if (!Args.hasArg(options::OPT_shared))
1922 - CmdArgs.push_back("-lgcc");
1924 - CmdArgs.push_back("-lgcc");
1925 - CmdArgs.push_back("--as-needed");
1926 - CmdArgs.push_back("-lgcc_pic");
1927 - CmdArgs.push_back("--no-as-needed");
1929 + CmdArgs.push_back("-lgcc_s");
1933 @@ -192,7 +193,8 @@ DragonFly::DragonFly(const Driver &D, co
1935 getFilePaths().push_back(getDriver().Dir + "/../lib");
1936 getFilePaths().push_back("/usr/lib");
1937 - getFilePaths().push_back("/usr/lib/gcc80");
1938 + getFilePaths().push_back("@RAVEN_GCC@");
1939 + getFilePaths().push_back("@RAVEN_GCC_TARGET@");
1942 Tool *DragonFly::buildAssembler() const {
1943 @@ -202,3 +204,5 @@ Tool *DragonFly::buildAssembler() const
1944 Tool *DragonFly::buildLinker() const {
1945 return new tools::dragonfly::Linker(*this);
1948 +bool DragonFly::HasNativeLLVMSupport() const { return true; }
1951 [FILE:389:patches/patch-lib_Driver_ToolChains_DragonFly.h]
1952 --- lib/Driver/ToolChains/DragonFly.h.orig 2023-10-31 08:00:30 UTC
1953 +++ lib/Driver/ToolChains/DragonFly.h
1954 @@ -52,6 +52,7 @@ class LLVM_LIBRARY_VISIBILITY DragonFly
1956 DragonFly(const Driver &D, const llvm::Triple &Triple,
1957 const llvm::opt::ArgList &Args);
1958 + bool HasNativeLLVMSupport() const override;
1960 bool IsMathErrnoDefault() const override { return false; }
1964 [FILE:2566:patches/patch-lib_Driver_ToolChains_FreeBSD.cpp]
1965 --- lib/Driver/ToolChains/FreeBSD.cpp.orig 2023-10-31 08:00:30 UTC
1966 +++ lib/Driver/ToolChains/FreeBSD.cpp
1967 @@ -285,6 +285,16 @@ void freebsd::Linker::ConstructJob(Compi
1968 addLinkerCompressDebugSectionsOption(ToolChain, Args, CmdArgs);
1969 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA);
1971 + CmdArgs.push_back("-L@RAVEN_GCC@");
1972 + CmdArgs.push_back("-L@LOCALBASE@/lib");
1974 + if (!Args.hasArg(options::OPT_static)) {
1975 + CmdArgs.push_back("-rpath");
1976 + CmdArgs.push_back("@RAVEN_GCC@");
1977 + CmdArgs.push_back("-rpath");
1978 + CmdArgs.push_back("@LOCALBASE@/lib");
1981 unsigned Major = ToolChain.getTriple().getOSMajorVersion();
1982 bool Profiling = Args.hasArg(options::OPT_pg) && Major != 0 && Major < 14;
1983 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs,
1984 @@ -381,6 +391,8 @@ FreeBSD::FreeBSD(const Driver &D, const
1985 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib32"));
1987 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib"));
1988 + getFilePaths().push_back("@RAVEN_GCC@");
1989 + getFilePaths().push_back("@RAVEN_GCC_TARGET@");
1992 unsigned FreeBSD::GetDefaultDwarfVersion() const {
1993 @@ -424,22 +436,19 @@ void FreeBSD::AddClangSystemIncludeArgs(
1994 concat(D.SysRoot, "/usr/include"));
1997 +void FreeBSD::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
1998 + llvm::opt::ArgStringList &CC1Args) const {
1999 + addSystemInclude(DriverArgs, CC1Args, "@RAVEN_GXX_HEADERS_DIR@");
2000 + addSystemInclude(DriverArgs, CC1Args, "@RAVEN_GXX_HEADERS_DIR@/backward");
2001 + addSystemInclude(DriverArgs, CC1Args, "@RAVEN_GXX_HEADERS_DIR@/@RAVEN_TRIPLE@");
2004 void FreeBSD::addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
2005 llvm::opt::ArgStringList &CC1Args) const {
2006 addSystemInclude(DriverArgs, CC1Args,
2007 concat(getDriver().SysRoot, "/usr/include/c++/v1"));
2010 -void FreeBSD::AddCXXStdlibLibArgs(const ArgList &Args,
2011 - ArgStringList &CmdArgs) const {
2012 - unsigned Major = getTriple().getOSMajorVersion();
2013 - bool Profiling = Args.hasArg(options::OPT_pg) && Major != 0 && Major < 14;
2015 - CmdArgs.push_back(Profiling ? "-lc++_p" : "-lc++");
2016 - if (Args.hasArg(options::OPT_fexperimental_library))
2017 - CmdArgs.push_back("-lc++experimental");
2020 void FreeBSD::AddCudaIncludeArgs(const ArgList &DriverArgs,
2021 ArgStringList &CC1Args) const {
2022 CudaInstallation->AddCudaIncludeArgs(DriverArgs, CC1Args);
2025 [FILE:960:patches/patch-lib_Driver_ToolChains_FreeBSD.h]
2026 --- lib/Driver/ToolChains/FreeBSD.h.orig 2023-10-31 08:00:30 UTC
2027 +++ lib/Driver/ToolChains/FreeBSD.h
2028 @@ -66,13 +66,13 @@ public:
2029 return ToolChain::RLT_CompilerRT;
2031 CXXStdlibType GetDefaultCXXStdlibType() const override {
2032 - return ToolChain::CST_Libcxx;
2033 + return ToolChain::CST_Libstdcxx;
2036 + void addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
2037 + llvm::opt::ArgStringList &CC1Args) const override;
2038 void addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
2039 llvm::opt::ArgStringList &CC1Args) const override;
2040 - void AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args,
2041 - llvm::opt::ArgStringList &CmdArgs) const override;
2042 void AddCudaIncludeArgs(const llvm::opt::ArgList &DriverArgs,
2043 llvm::opt::ArgStringList &CC1Args) const override;
2044 void AddHIPIncludeArgs(const llvm::opt::ArgList &DriverArgs,
2047 [FILE:697:patches/patch-lib_Driver_ToolChains_Gnu.cpp]
2048 --- lib/Driver/ToolChains/Gnu.cpp.orig 2023-10-31 08:00:30 UTC
2049 +++ lib/Driver/ToolChains/Gnu.cpp
2050 @@ -461,6 +461,9 @@ void tools::gnutools::Linker::ConstructJ
2052 CmdArgs.push_back("-static");
2054 + CmdArgs.push_back("-rpath");
2055 + CmdArgs.push_back("@RAVEN_GCC@");
2057 if (Args.hasArg(options::OPT_rdynamic))
2058 CmdArgs.push_back("-export-dynamic");
2060 @@ -584,6 +587,8 @@ void tools::gnutools::Linker::ConstructJ
2062 if (!Args.hasArg(options::OPT_nostdlib, options::OPT_r)) {
2063 if (!Args.hasArg(options::OPT_nodefaultlibs)) {
2064 + CmdArgs.push_back("-L@RAVEN_GCC@");
2066 if (IsStatic || IsStaticPIE)
2067 CmdArgs.push_back("--start-group");
2071 [FILE:3429:patches/patch-lib_Driver_ToolChains_NetBSD.cpp]
2072 --- lib/Driver/ToolChains/NetBSD.cpp.orig 2023-10-31 08:00:30 UTC
2073 +++ lib/Driver/ToolChains/NetBSD.cpp
2074 @@ -265,10 +265,15 @@ void netbsd::Linker::ConstructJob(Compil
2075 bool NeedsXRayDeps = addXRayRuntime(ToolChain, Args, CmdArgs);
2076 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA);
2078 - const SanitizerArgs &SanArgs = ToolChain.getSanitizerArgs(Args);
2079 - if (SanArgs.needsSharedRt()) {
2080 + CmdArgs.push_back("-L@RAVEN_GCC_TARGET@");
2081 + CmdArgs.push_back("-L@RAVEN_GCC@");
2082 + CmdArgs.push_back("-L@LOCALBASE@/lib");
2084 + if (!Args.hasArg(options::OPT_static)) {
2085 + CmdArgs.push_back("-rpath");
2086 + CmdArgs.push_back("@RAVEN_GCC@");
2087 CmdArgs.push_back("-rpath");
2088 - CmdArgs.push_back(Args.MakeArgString(ToolChain.getCompilerRTPath()));
2089 + CmdArgs.push_back("@LOCALBASE@/lib");
2092 bool useLibgcc = true;
2093 @@ -286,7 +291,6 @@ void netbsd::Linker::ConstructJob(Compil
2094 case llvm::Triple::sparcv9:
2095 case llvm::Triple::x86:
2096 case llvm::Triple::x86_64:
2097 - useLibgcc = false;
2101 @@ -310,21 +314,20 @@ void netbsd::Linker::ConstructJob(Compil
2102 linkXRayRuntimeDeps(ToolChain, CmdArgs);
2103 if (Args.hasArg(options::OPT_pthread))
2104 CmdArgs.push_back("-lpthread");
2105 - CmdArgs.push_back("-lc");
2106 + if (!Args.hasArg(options::OPT_nolibc)) {
2107 + CmdArgs.push_back("-lc");
2111 - if (Args.hasArg(options::OPT_static)) {
2112 + if (Args.hasArg(options::OPT_static) ||
2113 + Args.hasArg(options::OPT_static_libgcc)) {
2114 // libgcc_eh depends on libc, so resolve as much as possible,
2115 // pull in any new requirements from libc and then get the rest
2117 - CmdArgs.push_back("-lgcc_eh");
2118 - CmdArgs.push_back("-lc");
2119 CmdArgs.push_back("-lgcc");
2120 + CmdArgs.push_back("-lgcc_eh");
2122 - CmdArgs.push_back("-lgcc");
2123 - CmdArgs.push_back("--as-needed");
2124 CmdArgs.push_back("-lgcc_s");
2125 - CmdArgs.push_back("--no-as-needed");
2129 @@ -408,24 +411,6 @@ Tool *NetBSD::buildAssembler() const {
2130 Tool *NetBSD::buildLinker() const { return new tools::netbsd::Linker(*this); }
2132 ToolChain::CXXStdlibType NetBSD::GetDefaultCXXStdlibType() const {
2133 - switch (getArch()) {
2134 - case llvm::Triple::aarch64:
2135 - case llvm::Triple::aarch64_be:
2136 - case llvm::Triple::arm:
2137 - case llvm::Triple::armeb:
2138 - case llvm::Triple::thumb:
2139 - case llvm::Triple::thumbeb:
2140 - case llvm::Triple::ppc:
2141 - case llvm::Triple::ppc64:
2142 - case llvm::Triple::ppc64le:
2143 - case llvm::Triple::sparc:
2144 - case llvm::Triple::sparcv9:
2145 - case llvm::Triple::x86:
2146 - case llvm::Triple::x86_64:
2147 - return ToolChain::CST_Libcxx;
2151 return ToolChain::CST_Libstdcxx;
2154 @@ -486,8 +471,9 @@ void NetBSD::addLibCxxIncludePaths(const
2156 void NetBSD::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
2157 llvm::opt::ArgStringList &CC1Args) const {
2158 - addLibStdCXXIncludePaths(getDriver().SysRoot + "/usr/include/g++", "", "",
2159 - DriverArgs, CC1Args);
2160 + addSystemInclude(DriverArgs, CC1Args, "@RAVEN_GXX_HEADERS_DIR@");
2161 + addSystemInclude(DriverArgs, CC1Args, "@RAVEN_GXX_HEADERS_DIR@/backward");
2162 + addSystemInclude(DriverArgs, CC1Args, "@RAVEN_GXX_HEADERS_DIR@/@RAVEN_TRIPLE@");
2165 llvm::ExceptionHandling NetBSD::GetExceptionModel(const ArgList &Args) const {
2168 [FILE:597:patches/patch-lib_Frontend_InitPreprocessor.cpp]
2169 --- lib/Frontend/InitPreprocessor.cpp.orig 2023-10-31 08:00:30 UTC
2170 +++ lib/Frontend/InitPreprocessor.cpp
2171 @@ -777,7 +777,8 @@ static void InitializePredefinedMacros(c
2172 Builder.defineMacro("__GNUC__", Twine(GNUCMajor));
2173 Builder.defineMacro("__GNUC_MINOR__", Twine(GNUCMinor));
2174 Builder.defineMacro("__GNUC_PATCHLEVEL__", Twine(GNUCPatch));
2175 - Builder.defineMacro("__GXX_ABI_VERSION", "1002");
2176 + // match ABI of Ravenports GCC compiler
2177 + Builder.defineMacro("__GXX_ABI_VERSION", "1013");
2179 if (LangOpts.CPlusPlus) {
2180 Builder.defineMacro("__GNUG__", Twine(GNUCMajor));
2183 [FILE:603:patches/patch-lib_Interpreter_IncrementalParser.cpp]
2184 --- lib/Interpreter/IncrementalParser.cpp.orig 2023-10-31 08:00:30 UTC
2185 +++ lib/Interpreter/IncrementalParser.cpp
2186 @@ -125,7 +125,11 @@ public:
2187 switch (CI.getFrontendOpts().ProgramAction) {
2189 Err = llvm::createStringError(
2190 +#if defined __DragonFly__ || defined __NetBSD__
2191 + std::errc::operation_not_supported,
2193 std::errc::state_not_recoverable,
2195 "Driver initialization failed. "
2196 "Incremental mode for action %d is not supported",
2197 CI.getFrontendOpts().ProgramAction);
2200 [FILE:576:patches/patch-lib_Lex_InitHeaderSearch.cpp]
2201 --- lib/Lex/InitHeaderSearch.cpp.orig 2023-10-31 08:00:30 UTC
2202 +++ lib/Lex/InitHeaderSearch.cpp
2203 @@ -366,7 +366,9 @@ void InitHeaderSearch::AddDefaultCPlusPl
2206 case llvm::Triple::DragonFly:
2207 - AddPath("/usr/include/c++/5.0", CXXSystem, false);
2208 + AddPath("@RAVEN_GXX_HEADERS_DIR@", CXXSystem, false);
2209 + AddPath("@RAVEN_GXX_HEADERS_DIR@/backward", CXXSystem, false);
2210 + AddPath("@RAVEN_GXX_HEADERS_DIR@/" + triple.getTriple(), CXXSystem, false);
2212 case llvm::Triple::Minix:
2213 AddGnuCPlusPlusIncludePaths("/usr/gnu/include/c++/4.4.3",