Skip to content

Commit 4c83553

Browse files
committed
Merge commit '153ca862a487d1bacc8f611112abc09ba8e9275b' as 'scripts/ci/conan-profiles'
2 parents 75efca7 + 153ca86 commit 4c83553

29 files changed

+241
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Enables colored output from GCC
2+
3+
[conf]
4+
tools.build:cflags+=["-fdiagnostics-color"]
5+
tools.build:cxxflags+=["-fdiagnostics-color"]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include({{ os.path.join(profile_dir, "sccache", "only-self.profile") }})
2+
include({{ os.path.join(profile_dir, "color", "gcc.profile") }})
3+
include({{ os.path.join(profile_dir, "link", "gc.profile") }})
4+
include({{ os.path.join(profile_dir, "link", "lto-auto.profile") }})
5+
include({{ os.path.join(profile_dir, "link", "static.profile") }})
6+
include({{ os.path.join(profile_dir, "visibility", "hidden.profile") }})
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[settings]
2+
compiler.harden=true
3+
4+
[conf]
5+
tools.build:cflags+=["-fstack-protector-all", "-mshstk", "-fcf-protection=full"]
6+
tools.build:cxxflags+=["-fstack-protector-all", "-mshstk", "-fcf-protection=full"]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include({{ os.path.join(profile_dir, "_harden.profile") }})
2+
[settings]
3+
build_type=Debug
4+
[conf]
5+
tools.build:cflags+=["-U_FORTIFY_SOURCE", "-D_FORTIFY_SOURCE=0"]
6+
tools.build:cxxflags+=["-U_FORTIFY_SOURCE", "-D_FORTIFY_SOURCE=0"]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include({{ os.path.join(profile_dir, "_harden.profile") }})
2+
[settings]
3+
build_type=Release
4+
[conf]
5+
tools.build:cflags+=["-U_FORTIFY_SOURCE", "-D_FORTIFY_SOURCE=3"]
6+
tools.build:cxxflags+=["-U_FORTIFY_SOURCE", "-D_FORTIFY_SOURCE=3"]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include({{ os.path.join(profile_dir, "_harden.profile") }})
2+
[settings]
3+
build_type=Release
4+
[conf]
5+
tools.build:cflags+=["-U_FORTIFY_SOURCE", "-D_FORTIFY_SOURCE=3"]
6+
tools.build:cxxflags+=["-U_FORTIFY_SOURCE", "-D_FORTIFY_SOURCE=3"]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Compiles with individual function and data sections, and removes unused sections
2+
3+
[conf]
4+
tools.build:cxxflags+=["-ffunction-sections", "-fdata-sections"]
5+
tools.build:cflags+=["-ffunction-sections", "-fdata-sections"]
6+
tools.build:exelinkflags+=["-Wl,--gc-sections"]
7+
tools.build:sharedlinkflags+=["-Wl,--gc-sections"]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[conf]
2+
tools.build:exelinkflags+=["-flto=auto"]
3+
tools.build:sharedlinkflags+=["-flto=auto"]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
set(CMAKE_C_STANDARD_LIBRARIES_INIT
2+
"${CMAKE_C_STANDARD_LIBRARIES_INIT} -Wl,-Bstatic -lgcc -Wl,-Bdynamic -lgcc_s"
3+
CACHE STRING "" FORCE
4+
)
5+
set(CMAKE_CXX_STANDARD_LIBRARIES_INIT
6+
"${CMAKE_CXX_STANDARD_LIBRARIES_INIT} -Wl,-Bstatic -lgcc -Wl,-Bdynamic -lgcc_s"
7+
CACHE STRING "" FORCE
8+
)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Links libstdc++, libgfortran, libquadmath and libgcc statically (but not libgcc_eh)
2+
3+
[settings]
4+
compiler.static-libs=stdc++ gfortran quadmath gcc
5+
6+
[conf]
7+
tools.build:exelinkflags+=["-static-libstdc++", "-static-libgfortran", "-static-libquadmath"]
8+
tools.build:sharedlinkflags+=["-static-libstdc++", "-static-libgfortran", "-static-libquadmath"]
9+
tools.cmake.cmaketoolchain:user_toolchain=+['{{ os.path.join(profile_dir, "static-libgcc.cmake") }}']
10+
11+
[options]
12+
coinmumps/*:static_fortran_libs=True

0 commit comments

Comments
 (0)