vectorgrp / sil-kit

Vector SIL Kit – Open-Source Library for Connecting Software-in-the-Loop Environments
https://vectorgrp.github.io/sil-kit-docs
MIT License
107 stars 32 forks source link

cmake: don`t use linker map on Android #144

Closed MariusBgm closed 1 week ago

MariusBgm commented 1 week ago

The linker map is not working as intended on an Android NDK build.

Repro

  1. fetch android-ndk
  2. export ANDROID_NDK_HOME=android-ndk-r27c
  3. cd sil-kit && cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake -DANDROID_PLATFORM=android-34 -DANDROID_ABI=arm64-v8a -DANDROID_NDK=$ANDROID_NDK_HOME -DSILKIT_BUILD_DEMOS=OFF -DSILKIT_BUILD_STATIC=OFF -DSILKIT_BUILD_TESTS=OFF -B _build/android -S .

The shared library should build cleanly (note, there are some warnings with LLVM18). As reported in #142