rust/hgcli/.cargo/config
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 23 Nov 2023 22:51:01 +0100
changeset 51370 99869dcf3ba0
parent 44642 af739894a4c1
permissions -rw-r--r--
delta-find: pass the full deltainfo to the _DeltaSearch class Having more information is better, so we pass it directly.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44642
af739894a4c1 hgcli: add stub PyOxidizer project
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
     1
# By default Rust will not export dynamic symbols from built executables.
af739894a4c1 hgcli: add stub PyOxidizer project
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
     2
# Python symbols need to be exported from executables in order for that
af739894a4c1 hgcli: add stub PyOxidizer project
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
     3
# executable to load Python extension modules, which are shared libraries.
af739894a4c1 hgcli: add stub PyOxidizer project
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
     4
# Otherwise, the extension module / shared library is unable to resolve
af739894a4c1 hgcli: add stub PyOxidizer project
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
     5
# Python symbols. This file contains target-specific configuration
af739894a4c1 hgcli: add stub PyOxidizer project
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
     6
# overrides to export dynamic symbols from executables.
af739894a4c1 hgcli: add stub PyOxidizer project
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
     7
#
af739894a4c1 hgcli: add stub PyOxidizer project
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
     8
# Ideally we would achieve this functionality via the build.rs build
af739894a4c1 hgcli: add stub PyOxidizer project
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
     9
# script. But custom compiler flags via build scripts apparently only
af739894a4c1 hgcli: add stub PyOxidizer project
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
    10
# support limited options.
af739894a4c1 hgcli: add stub PyOxidizer project
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
    11
af739894a4c1 hgcli: add stub PyOxidizer project
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
    12
[target.x86_64-unknown-linux-gnu]
af739894a4c1 hgcli: add stub PyOxidizer project
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
    13
rustflags = ["-C", "link-args=-Wl,-export-dynamic"]