Skip to content

Commit 92b2b8e

Browse files
authored
Fix the compile issue on arm64 (#387)
1 parent bb6ebf6 commit 92b2b8e

File tree

10 files changed

+17
-12
lines changed

10 files changed

+17
-12
lines changed

Makefile

+10-2
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,21 @@ endif
193193
build:
194194
PROXY_ENABLE_FEATURES="${ENABLE_FEATURES}" ./proxy_scripts/build.sh
195195

196+
# Do not call make build which could duplicate ENABLE_FEATURES
197+
ifeq ($(PROXY_FRAME_POINTER),1)
198+
debug: ENABLE_FEATURES += pprof-fp
199+
endif
196200
debug: export PROXY_PROFILE=debug
197201
debug:
198-
make build
202+
PROXY_ENABLE_FEATURES="${ENABLE_FEATURES}" ./proxy_scripts/build.sh
203+
199204

205+
ifeq ($(PROXY_FRAME_POINTER),1)
206+
release: ENABLE_FEATURES += pprof-fp
207+
endif
200208
release: export PROXY_PROFILE=release
201209
release:
202-
make build
210+
PROXY_ENABLE_FEATURES="${ENABLE_FEATURES}" ./proxy_scripts/build.sh
203211

204212
## Testing
205213
## -------

proxy_components/engine_store_ffi/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "engine_store_ffi"
33
version = "0.0.1"
44
authors = ["The TiKV Authors"]
55
license = "Apache-2.0"
6-
edition = "2018"
6+
edition = "2021"
77
publish = false
88

99
[features]

proxy_components/engine_tiflash/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "engine_tiflash"
33
version = "0.0.1"
4-
edition = "2018"
4+
edition = "2021"
55
publish = false
66

77
[features]

proxy_components/mock-engine-store/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "mock-engine-store"
33
version = "0.0.1"
44
license = "Apache-2.0"
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[lib]

proxy_components/proxy_ffi/src/jemalloc_utils.rs

-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ extern "C" {
2020
) -> ::std::os::raw::c_int;
2121
}
2222

23-
extern crate libc;
24-
2523
#[allow(unused_variables)]
2624
#[allow(unused_mut)]
2725
#[allow(unused_unsafe)]

proxy_components/proxy_ffi/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// Copyright 2022 TiKV Project Authors. Licensed under Apache-2.0.
2-
#![feature(rustc_private)]
32
#![feature(thread_id_value)]
43

54
/// All mods end up with `_impls` impl structs defined in interface.

proxy_components/proxy_server/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "proxy_server"
33
version = "0.0.1"
44
license = "Apache-2.0"
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[features]

proxy_tests/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "proxy_tests"
33
version = "0.0.1"
4-
edition = "2018"
4+
edition = "2021"
55
publish = false
66

77
[[test]]

raftstore-proxy-main/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "raftstore-proxy-main"
33
version = "0.0.1"
44
license = "Apache-2.0"
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[features]

raftstore-proxy/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "raftstore-proxy"
33
version = "0.0.1"
44
license = "Apache-2.0"
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[features]

0 commit comments

Comments
 (0)