| /freebsd/.github/workflows/ |
| H A D | cross-bootstrap-tools.yml | 1 name: Cross-build Kernel 16 runs-on: ${{ matrix.os }} 18 fail-fast: false 21 os: [ ubuntu-22.04, ubuntu-24.04, macos-latest ] 24 - os: ubuntu-22.04 25 compiler: clang-15 26 cross-bindir: /usr/lib/llvm-15/bin 27 pkgs: bmake libarchive-dev clang-15 lld-15 28 - os: ubuntu-24.04 29 compiler: clang-18 [all …]
|
| /freebsd/tools/build/ |
| H A D | make.py | 3 # - 4 # SPDX-License-Identifier: BSD-2-Clause 31 # This script makes it easier to build on non-FreeBSD systems by bootstrapping 35 # `MAKEOBJDIRPREFIX=~/obj ./tools/build/make.py buildworld -DWITH_FOO` 37 # On Linux and MacOS you may need to explicitly indicate the cross toolchain 39 # - setting XCC/XCXX/XLD/XCPP to the paths of each tool 40 # - using --cross-bindir to specify the path to the cross-compiler bindir: 42 # --cross-bindir=/path/to/cross/compiler buildworld -DWITH_FOO TARGET=foo 44 # - using --cross-toolchain to specify the package containing the cross-compiler 47 # --cross-toolchain=llvm@NN buildworld -DWITH_FOO TARGET=foo [all …]
|
| H A D | Makefile | 42 _XCODE_ROOT!=xcode-select -p 46 # Only command line tools installed -> host headers are in the SDKs directory 49 # Full XCode installed -> host headers are below Platforms/MacOSX.platform 54 .error You must install the macOS SDK (try xcode-select --install) 60 # Allow building libc-internal files (also on non-FreeBSD hosts) 61 CFLAGS+= -I${.CURDIR}/libc-bootstrap 62 # Symbol versioning is not required for -legacy (and macOS bootstrap) 65 _WITH_PWCACHEDB!= grep -c pwcache_groupdb ${HOST_INCLUDE_ROOT}/grp.h || true 67 .PATH: ${.CURDIR}/../../contrib/libc-pwcache 68 CFLAGS.pwcache.c+= -I${.CURDIR}/../../contrib/libc-pwcache [all …]
|
| /freebsd/share/man/man7/ |
| H A D | build.7 | 2 .\" SPDX-License-Identifier: BSD-2-Clause 41 .Bl -tag -width "/usr/ports" 49 third-party software, with a consistent interface for building and 54 These directories may be initially empty or non-existent until updated 74 A source tree is allowed to be read-only. 108 .Bl -tag -width ".Cm cleandepend" 150 Per-object dependencies are generated at build time and stored in 176 .Bl -tag -width ".Cm distributeworld" 180 For cross-building the target architecture needs to be specified with 187 This target is only useful after a complete toolchain (including [all …]
|
| H A D | freebsd-base.7 | 1 .\" SPDX-License-Identifier: ISC 22 .Nm freebsd-base 34 .Dq "FreeBSD-" , 39 .Dq FreeBSD-base , 68 .Sy FreeBSD-foo , 70 .Bl -column "FreeBSD-foo-dev-lib32" "Description" 72 .It FreeBSD-foo Ta Base files for the package (typically executables) 73 .It FreeBSD-foo-lib Ta Native runtime libraries 74 .It FreeBSD-foo-lib32 Ta 32-bit compatibility runtime libraries 75 .It FreeBSD-foo-dev Ta Development files (headers and static libraries) [all …]
|
| /freebsd/targets/pseudo/bootstrap-tools/ |
| H A D | Makefile | 1 # building clang is particularly tedious - so avoid re-inventing wheels 3 all: bootstrap-toolchain 11 HOST_MACHINE!= uname -m 12 HOST_MACHINE_ARCH!= uname -p 28 OSRELDATE!= sed -n '/define.*__FreeBSD_version/{s,^[^0-9]*,,p;q;}' ${ord_h} 35 OBJTOP='${WORLDTMP}/obj-tools' \ 40 -DNO_CPU_CFLAGS \ 41 -DNO_PIC \ 42 -DNO_SHARED \ 56 # We will handle building the toolchain and cross-compiler. [all …]
|
| /freebsd/ |
| H A D | Makefile | 3 # The common user-driven targets are (for a complete list, see build(7)): 5 # universe - *Really* build *everything* (buildworld and 9 # tinderbox - Same as universe, but presents a list of failed build 11 # worlds - Same as universe, except just makes the worlds. 12 # kernels - Same as universe, except just makes the kernels. 13 # buildworld - Rebuild *everything*, including glue to help do 15 # installworld - Install everything built by "buildworld". 16 # world - buildworld + installworld, no kernel. 17 # buildkernel - Rebuild the kernel and the kernel-modules. 18 # installkernel - Install the kernel and the kernel-modules. [all …]
|
| H A D | Makefile.inc1 | 4 # -DNO_CLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir 5 # -DNO_CLEAN do not clean at all 6 # -DDB_FROM_SRC use the user/group databases in src/etc instead of 8 # -DNO_SHARE do not go into share subdir 9 # -DKERNFAST define NO_KERNEL{CONFIG,CLEAN,OBJ} 10 # -DNO_KERNELCONFIG do not run config in ${MAKE} buildkernel 11 # -DNO_KERNELCLEAN do not run ${MAKE} clean in ${MAKE} buildkernel 12 # -DNO_KERNELOBJ do not run ${MAKE} obj in ${MAKE} buildkernel 13 # -DNO_ROOT install without using root privilege 14 # -DWITHOUT_CTF do not run the DTrace CTF conversion tools on built objects [all …]
|
| /freebsd/contrib/ldns/ |
| H A D | README-Travis.md | 5 …n builds LDNS. The testing is tailored for Android NDK-r19 and above, and includes NDK-r20 and NDK… 9 The LDNS Travis configuration file `.travis.yml` does not use top-level keys like `os:` and `compil… 13 …des AMD64, Aarch64, PowerPC and s390x. PowerPC is a little-endian platform, and s390x is a big-end… 16 - os: linux 21 - os: linux 37 - os: linux 43 - os: linux 55 export CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=undefined -fno-sanitize-recover" 58 export CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=address" 65 …cross-compile, and requires OpenSSL prerequisites. The Android cross-compiles also require care to… [all …]
|
| /freebsd/contrib/unbound/ |
| H A D | README-Travis.md | 5 …uilds Unbound. The testing is tailored for Android NDK-r19 and above, and includes NDK-r20 and NDK… 9 The Unbound Travis configuration file `.travis.yml` does not use top-level keys like `os:` and `com… 13 …des AMD64, Aarch64, PowerPC and s390x. PowerPC is a little-endian platform, and s390x is a big-end… 16 - os: linux 21 - os: linux 37 - os: linux 43 - os: linux 55 export CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=undefined -fno-sanitize-recover" 57 make -j 2 60 export CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=address" [all …]
|
| /freebsd/tools/build/options/ |
| H A D | WITHOUT_CROSS_COMPILER | 1 Do not build any cross compiler in the cross-tools stage of buildworld. 12 been any changes to the toolchain between the versions.
|
| /freebsd/contrib/libcbor/.circleci/ |
| H A D | config.yml | 4 linux-setup: 6 - run: sudo apt-get update 8 - run: sudo NEEDRESTART_MODE=l apt-get install -y cmake ${TOOLCHAIN_PACKAGES} 9 - run: sudo NEEDRESTART_MODE=l apt-get install -y libcmocka-de [all...] |
| /freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
| H A D | RISCVToolchain.cpp | 1 //===--- RISCVToolchain.cpp - RISC-V ToolChain Implementations --*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 28 ToolChain::path_list &Paths) { in addMultilibsFilePaths() 35 // through gcc-toolchain argument or in the same prefix where clang 36 // is installed. This helps decide whether to instantiate this toolchain 37 // or Baremetal toolchain. 49 /// RISC-V Toolchain 58 // Add toolchain/multilib specific file paths. in RISCVToolChain() 62 ToolChain::path_list &PPaths = getProgramPaths(); in RISCVToolChain() [all …]
|
| H A D | Gnu.cpp | 1 //===--- Gnu.cpp - Gnu Tool and ToolChain Implementations -------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 27 #include "clang/Driver/ToolChain.h" 59 StringRef CPUArg(A->getValue()); in normalizeCPUNamesForAssembler() 61 CmdArgs.push_back("-mcpu=cortex-a15"); in normalizeCPUNamesForAssembler() 63 CmdArgs.push_back("-mcpu=cortex-a57"); in normalizeCPUNamesForAssembler() 78 if (forwardToGCC(A->getOption())) { in ConstructJob() 83 A->claim(); in ConstructJob() 85 A->render(Args, CmdArgs); in ConstructJob() [all …]
|
| H A D | MinGW.cpp | 1 //===--- MinGW.cpp - MinGWToolChain Implementation ------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 39 CmdArgs.push_back("--32"); in ConstructJob() 41 CmdArgs.push_back("--64"); in ConstructJob() 46 CmdArgs.push_back("-o"); in ConstructJob() 64 CmdArgs.push_back("-lmingwthrd"); in AddLibGCC() 65 CmdArgs.push_back("-lmingw32"); in AddLibGCC() 67 // Make use of compiler-rt if --rtlib option is used in AddLibGCC() 68 ToolChain::RuntimeLibType RLT = getToolChain().GetRuntimeLibType(Args); in AddLibGCC() [all …]
|
| H A D | CrossWindows.cpp | 1 //===-- CrossWindows.cpp - Cross Windows Tool Chain -----------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 42 CmdArgs.push_back("--32"); in ConstructJob() 45 CmdArgs.push_back("--64"); in ConstructJob() 51 CmdArgs.push_back("-o"); in ConstructJob() 76 // Silence warning for "clang -g foo.o -o foo" in ConstructJob() 78 // and "clang -emit-llvm foo.o -o foo" in ConstructJob() 80 // and for "clang -w foo.o -o foo" in ConstructJob() 85 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob() [all …]
|
| H A D | Linux.cpp | 1 //===--- Linux.h - Linux ToolChain Implementations --------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 37 /// Debian-based systems are starting to use a multiarch setup where they use 38 /// a target-triple directory in the library and header search paths. 58 // 32-bit and 64-bit targets. Multiarch fixes its install triples to these in getMultiarchTriple() 63 return "arm-linux-androideabi"; in getMultiarchTriple() 67 return "arm-linux-gnueabihf"; in getMultiarchTriple() 68 return "arm-linux-gnueabi"; in getMultiarchTriple() 74 return "armeb-linux-gnueabihf"; in getMultiarchTriple() [all …]
|
| H A D | CommonArgs.cpp | 1 //===--- CommonArgs.cpp - Args handling for multiple toolchains -*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 40 #include "clang/Driver/ToolChain.h" 50 #include "llvm/Config/llvm-config.h" 176 // True if a target-specific option requires the frame chain to be preserved, 181 // For 32-bit Arm, the -mframe-chain=aapcs and -mframe-chain=aapcs+leaf in mustMaintainValidFrameChain() 183 // new AAPCS-compilant frame record), even with -fno-omit-frame-pointer. in mustMaintainValidFrameChain() 185 StringRef V = A->getValue(); in mustMaintainValidFrameChain() 193 // True if a target-specific option causes -fno-omit-frame-pointer to also [all …]
|
| /freebsd/crypto/openssl/Configurations/ |
| H A D | 15-ios.conf | 4 # `xcrun -sdk iphoneos`. This has been standard in Xcode for a while now - any recent 10 "ios-common" => { 12 inherit_from => [ "darwin-common" ], 16 "ios-xcrun" => { 17 inherit_from => [ "ios-common" ], 18 # It should be possible to go below iOS 6 and even add -arch armv6, 19 # thus targeting iPhone pre-3GS, but it's assumed to be irrelevant 21 CC => "xcrun -sdk iphoneos cc", 22 cflags => add("-arch armv7 -fno-common"), 26 "ios64-xcrun" => { [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Driver/ |
| H A D | SanitizerArgs.h | 1 //===--- SanitizerArgs.h - Arguments for sanitizer tools -------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 22 class ToolChain; variable 64 // True if cross-dso CFI support if provided by the system (i.e. Android). 75 SanitizerArgs(const ToolChain &TC, const llvm::opt::ArgList &Args, 138 void addArgs(const ToolChain &TC, const llvm::opt::ArgList &Args,
|
| /freebsd/contrib/llvm-project/lld/docs/ |
| H A D | index.rst | 1 LLD - The LLVM Linker 4 LLD is a linker from the LLVM project that is a drop-in replacement 6 features that are useful for toolchain developers. 8 The linker supports ELF (Unix), PE/COFF (Windows), Mach-O (macOS) and 16 -------- 18 - LLD is a drop-in replacement for the GNU linkers that accepts the 21 - LLD is very fast. When you link a large program on a multicore 25 - It supports various CPUs/ABIs including AArch64, AMDGPU, ARM, Hexagon, 26 LoongArch, MIPS 32/64 big/little-endian, PowerPC, PowerPC64, RISC-V, 27 SPARC V9, x86-32 and x86-64. Among these, AArch64, ARM (>= v4), LoongArch, [all …]
|
| /freebsd/crypto/openssl/ |
| H A D | NOTES-ANDROID.md | 5 ------------------- 15 ------------- 17 Android is a cross-compiled target and you can't rely on `./Configure` 19 target explicitly; there are `android-arm`, `android-arm64`, `android-mips`, 20 `android-mip64`, `android-x86`, `android-x86_64` and `android-riscv64` 23 Do not pass --cross-compile-prefix (as you might be tempted), as it 30 to point at the `NDK` directory. If you're using a side-by-side NDK the path 31 will look something like `/some/where/android-sdk/ndk/<ver>`, and for a 32 standalone NDK the path will be something like `/some/where/android-ndk-<ver>`. 34 The NDK customarily supports multiple Android API levels, e.g. `android-14`, [all …]
|
| H A D | NOTES-WINDOWS.md | 4 - [Native builds using Visual C++](#native-builds-using-visual-c) 5 - [Native builds using Embarcadero C++Builder]( 6 #native-builds-using-embarcadero-cbuilder) 7 - [Native builds using MinGW](#native-builds-using-mingw) 8 - [Linking native applications](#linking-native-applications) 9 - [Hosted builds using Cygwin](#hosted-builds-using-cygwin) 20 MinGW cross compiler 21 run on the GNU-like development environment MSYS2 31 The native builds using Visual C++ have a `VC-*` prefix. 34 ------------------- [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Driver/ |
| H A D | SanitizerArgs.cpp | 1 //===--- SanitizerArgs.cpp - Arguments for sanitizer tools ---------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 14 #include "clang/Driver/ToolChain.h" 112 /// Parse a -fsanitize= or -fno-sanitize= argument's values, diagnosing any 117 /// Parse -f(no-)?sanitize-coverage= flag values, diagnosing any invalid 122 /// Parse -f(no-)?sanitize-metadata= flag values, diagnosing any invalid 129 /// "-fsanitize=thread,vptr -fsanitize=address" with mask \c NeedsUbsanRt 130 /// would produce "-fsanitize=vptr". 137 /// "-fsanitize=address,alignment" with mask \c NeedsUbsanRt would produce [all …]
|
| /freebsd/contrib/ncurses/ |
| H A D | README.MinGW | 1 ------------------------------------------------------------------------------- 2 -- Copyright 2020 Thomas E. Dickey -- 3 -- Copyright 2008-2011,2012 Free Software Foundation, Inc. -- 4 -- -- 5 -- Permission is hereby granted, free of charge, to any person obtaining a -- 6 -- copy of this software and associated documentation files (the -- 7 -- "Software"), to deal in the Software without restriction, including -- 8 -- without limitation the rights to use, copy, modify, merge, publish, -- 9 -- distribute, distribute with modifications, sublicense, and/or sell copies -- 10 -- of the Software, and to permit persons to whom the Software is furnished -- [all …]
|