rust.cmake: add comment pointing to CAmkES setting of --tls-model

Change-Id: I5b2674ef86b9a5c35f441666a9d3ec55cd591f7e
GitOrigin-RevId: 32312f93e053ea0579cb6d98e9fc991ba325ddb2
This commit is contained in:
Sam Leffler 2022-07-25 23:00:18 +00:00
parent c8e27dab0a
commit f33b5b4a9e

View File

@ -7,7 +7,8 @@
cmake_minimum_required(VERSION 3.8.2) cmake_minimum_required(VERSION 3.8.2)
include_guard(GLOBAL) include_guard(GLOBAL)
# Force TLS-model to be compatible with CAmkES usage. # Force TLS-model to be compatible with CAmkES usage (see
# tools/seL4/camkes-tool/helpers/environment_flags.cmake).
# NB: we cannot use CARGO_OPTIONS, cargo will strip it out # NB: we cannot use CARGO_OPTIONS, cargo will strip it out
set(RUSTFLAGS "-Z tls-model=local-exec" CACHE INTERNAL "rustc env flags") set(RUSTFLAGS "-Z tls-model=local-exec" CACHE INTERNAL "rustc env flags")