Skip to content

Commit eef856d

Browse files
committed
chore: add native x86-64 target profile for cargo
Signed-off-by: Sam Gammon <sam@elide.dev>
1 parent c5ade2a commit eef856d

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.cargo/config.native-x86_64.toml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
# Copyright (c) 2024 Elide Technologies, Inc.
3+
#
4+
# Licensed under the MIT license (the "License"); you may not use this file except in compliance
5+
# with the License. You may obtain a copy of the License at
6+
#
7+
# https://opensource.org/license/mit/
8+
#
9+
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10+
# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11+
# License for the specific language governing permissions and limitations under the License.
12+
#
13+
14+
[build]
15+
rustflags = [
16+
# Enforce completely position-independent executables.
17+
"-Crelocation-model=pic",
18+
19+
# Target CPU.
20+
"-Ctarget-cpu=native",
21+
]
22+
23+
[env]
24+
ELIDE_ROOT = { value = ".", relative = true }
25+
INCLUDE = { value = "target/include", relative = true }
26+
LIB = { value = "target/lib", relative = true }
27+
SQLITE3_STATIC = { value = "1" }
28+
SQLITE3_LIB_DIR = { value = "target/lib", relative = true }
29+
SQLITE3_INCLUDE_DIR = { value = "target/include", relative = true }

0 commit comments

Comments
 (0)