Skip to content

Commit 2abdf59

Browse files
robambaluCarreau
authored andcommitted
Update vcpkg baseline (Point72#209)
* update vcpkg baseline. forced vcpkg triplet for linux to x64-linux ( was defaulting to the community x64-linux-dynamic for some reason, which fails when building boost on the latest baseline
1 parent e2a4f2b commit 2abdf59

File tree

3 files changed

+45
-29
lines changed

3 files changed

+45
-29
lines changed

setup.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
# - omit coverage/gprof, not implemented
2323
)
2424

25+
if sys.platform == "linux":
26+
VCPKG_TRIPLET = "x64-linux"
27+
else:
28+
VCPKG_TRIPLET = None
29+
2530
# This will be used for e.g. the sdist
2631
if CSP_USE_VCPKG:
2732
if not os.path.exists("vcpkg"):
@@ -30,12 +35,15 @@
3035
subprocess.call(["git", "submodule", "update", "--init", "--recursive"])
3136
if not os.path.exists("vcpkg/buildtrees"):
3237
subprocess.call(["git", "pull"], cwd="vcpkg")
38+
args = ["install"]
39+
if VCPKG_TRIPLET is not None:
40+
args.append(f"--triplet={VCPKG_TRIPLET}")
3341
if os.name == "nt":
3442
subprocess.call(["bootstrap-vcpkg.bat"], cwd="vcpkg", shell=True)
35-
subprocess.call(["vcpkg.bat", "install"], cwd="vcpkg", shell=True)
43+
subprocess.call(["vcpkg.bat"] + args, cwd="vcpkg", shell=True)
3644
else:
3745
subprocess.call(["./bootstrap-vcpkg.sh"], cwd="vcpkg")
38-
subprocess.call(["./vcpkg", "install"], cwd="vcpkg")
46+
subprocess.call(["./vcpkg"] + args, cwd="vcpkg")
3947

4048

4149
python_version = f"{sys.version_info.major}.{sys.version_info.minor}"
@@ -54,6 +62,9 @@
5462
"-DCSP_USE_VCPKG=ON",
5563
]
5664
)
65+
66+
if VCPKG_TRIPLET is not None:
67+
cmake_args.append( f"-DVCPKG_TARGET_TRIPLET={VCPKG_TRIPLET}" )
5768
else:
5869
cmake_args.append("-DCSP_USE_VCPKG=OFF")
5970

vcpkg

Submodule vcpkg updated 3304 files

vcpkg.json

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
11
{
2-
"name": "main",
3-
"version-string": "latest",
4-
"dependencies": [
5-
"abseil",
6-
"arrow",
7-
"brotli",
8-
"exprtk",
9-
"gtest",
10-
{
11-
"name": "librdkafka",
12-
"features": ["ssl"]
13-
},
14-
"lz4",
15-
"openssl",
16-
"parquet",
17-
"protobuf",
18-
"rapidjson",
19-
"thrift",
20-
"utf8proc",
21-
"websocketpp"
22-
],
23-
"overrides": [
24-
{ "name": "arrow", "version": "15.0.0"}
25-
],
26-
"builtin-baseline": "288e8bebf4ca67c1f8ebd49366b03650cfd9eb7d"
27-
}
2+
"name": "main",
3+
"version-string": "latest",
4+
"dependencies": [
5+
"abseil",
6+
"arrow",
7+
"brotli",
8+
"exprtk",
9+
"gtest",
10+
{
11+
"name": "librdkafka",
12+
"features": [
13+
"ssl"
14+
]
15+
},
16+
"lz4",
17+
"openssl",
18+
"parquet",
19+
"protobuf",
20+
"rapidjson",
21+
"thrift",
22+
"utf8proc",
23+
"websocketpp"
24+
],
25+
"overrides": [
26+
{
27+
"name": "arrow",
28+
"version": "15.0.0"
29+
}
30+
],
31+
"builtin-baseline": "04b0cf2b3fd1752d3c3db969cbc10ba0a4613cee"
32+
}

0 commit comments

Comments
 (0)