Skip to content

LowFat with link-time optimizations not working #18

@taddeus

Description

@taddeus

I am trying to compile benchmarks with link-time optimizations by adding -flto to CFLAGS and LDFLAGS. To have these options available, I added -DLLVM_ENABLE_LTO=ON to build.sh on line 76. This breaks the build script with the following error:

CMake Error at projects/compiler-rt/cmake/Modules/AddCompilerRT.cmake:133 (message):
  Architecture x86_64 can't be targeted
Call Stack (most recent call first):
  projects/compiler-rt/lib/lowfat/CMakeLists.txt:10 (add_compiler_rt_runtime)

See the complete output of the build script here: https://gist.github.com/taddeus/7c2babd439e2846abb7a598ec12a029a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions