Topic: Reduce LLVM build time
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): Unreleased 1.3.2 from Github
- Deployed with iRedMail Easy or the downloadable installer? Download from Github
- Linux/BSD distribution name and version: FreeBSD 12.1-RELEASE-p10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL 12.x
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
On FreeBSD all packages are build from the `Ports`.
The LLVM is build as a dependency for PostgreSQL.
As there is no explicit configuration, all the defaults are used.
The defaults are likely to be configured as to be used for development, opposed to as a dependency.
For development there are cross-ompilers, debuggers, (extensive) documentation.
The build of LLVM takes a good chunk of the iRedMail installation (six hours in one test)
I checked and asked in the FreeBSD foruns and got some feedback. Link below:
Bare minimum build of LLVM
Below is a suggestions (TO BE Tested!)
# cd /usr/ports/devel/llvm90
# make config
┌────────────────── llvm90-9.0.1_2 ───────────────────┐
│ ┌────────────────────────────────────────────┐ │
│ │+[x] BE_AMDGPU AMD GPU backend (required by mesa) │ │
│ │+[x] CLANG Build clang │ │
│ │+[ ] COMPILER_RT Sanitizer libraries │ │
│ │+[ ] DOCS Build and/or install documentation │ │
│ │+[ ] ELFV2 [PowerPC64] Use OpenPOWER ELF ABI v2 by default │ │
│ │+[ ] EXTRAS Extra clang tools │ │
│ │+[ ] GOLD Build the LLVM Gold plugin for LTO │ │
│ │+[x] LIT Install lit and FileCheck test tools │ │
│ │+[x] LLD Install lld, the LLVM linker │ │
│ │+[ ] LLDB Install lldb, the LLVM debugger │ │
│ │+[x] LLD_LINK Link ld.lld as ld to clang uses it │ │
│ │+[x] OPENMP Install libomp, the LLVM OpenMP runtime library │ │
│ │+[ ] PYCLANG Install python bindings to libclang │ │
│ │──────────────────── BACKENDS ──────────────────│ │
│ │+( ) BE_FREEBSD Backends for FreeBSD architectures │ │
│ │+(*) BE_NATIVE Backend(s) for this architecture (X86) │ │
│ │+( ) BE_STANDARD All non-experimental backends │ │
│ └────────────────────────────────────────────┘ │
└───────────────────────────────────────────────┘
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.