Revert "bump nim-libbacktrace (#1769)" (#1773)

This reverts commit de1b3315e85ab78b83f014c6b76215639413f580.
This commit is contained in:
Mamy Ratsimbazafy 2020-09-28 22:37:18 +02:00 committed by GitHub
parent de1b3315e8
commit 98661914f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -4,26 +4,26 @@ if defined(arm64):
# https://twitter.com/EthereumOnARM/status/1309477357938499585?s=20 # https://twitter.com/EthereumOnARM/status/1309477357938499585?s=20
# https://github.com/supranational/blst/issues/31 # https://github.com/supranational/blst/issues/31
switch("define", "BLS_FORCE_BACKEND=miracl") switch("define", "BLS_FORCE_BACKEND=miracl")
# --------------------------------------------------- # ---------------------------------------------------
when defined(release): if defined(release):
let nimCachePath = "nimcache/release/" & projectName() switch("nimcache", "nimcache/release/$projectName")
else: else:
let nimCachePath = "nimcache/debug/" & projectName() switch("nimcache", "nimcache/debug/$projectName")
switch("nimcache", nimCachePath)
# `-flto` gives a significant improvement in processing speed, specially hash tree and state transition (basically any CPU-bound code implemented in nim) # `-flto` gives a significant improvement in processing speed, specially hash tree and state transition (basically any CPU-bound code implemented in nim)
# With LTO enabled, optimization flags should be passed to both compiler and linker! # With LTO enabled, optimization flags should be passed to both compiler and linker!
if defined(release) and not defined(disableLTO): if defined(release) and not defined(disableLTO):
if defined(macosx): # Clang if defined(macosx): # Clang
switch("passC", "-flto=thin") switch("passC", "-flto=thin")
switch("passL", "-flto=thin -Wl,-object_path_lto," & nimCachePath & "/lto") switch("passL", "-flto=thin")
elif defined(linux): elif defined(linux):
switch("passC", "-flto=auto") switch("passC", "-flto=auto")
switch("passL", "-flto=auto") switch("passL", "-flto=auto")
else: else:
# On windows, LTO needs more love and attention so "gcc-ar" and "gcc-ranlib" are # On windows, LTO needs more love and attention so the right linkers
# used for static libraries. # are used
discard discard
if defined(windows): if defined(windows):

@ -1 +1 @@
Subproject commit 8121c08e0e7bdf92f86012b4af2330434fa7ed5d Subproject commit dc2c199d41dc90de75043d1ee4efe5e0323932bf