Skip to content

Commit 36d2454

Browse files
Add new include search path folder for no-cmake build because of upstream AWS-LC change #2324 (#792)
aws/aws-lc#2324 implements a new import method for s2n-bignum upstream in AWS-LC. Among other things it introduces a new folder structure. This messes with assumptions for the aws-lc-rs prefix build, when not using cmake. aws-lc-rs has hard assumptions on the folder structure to add the correct include search paths. Now s2n-bignum source in upstream AWS-LC is located under third_party/s2n-bignum/s2n-bignum-imported. Note third_party/s2-bignum contains the AWS-LC-specific header files. Hence we keep the existing search path.
1 parent 54669e5 commit 36d2454

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

aws-lc-sys/builder/cc_builder.rs

+8
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,14 @@ impl CcBuilder {
302302
.join("s2n-bignum")
303303
.join("include"),
304304
));
305+
build_options.push(BuildOption::include(
306+
self.manifest_dir
307+
.join("aws-lc")
308+
.join("third_party")
309+
.join("s2n-bignum")
310+
.join("s2n-bignum-imported")
311+
.join("include"),
312+
));
305313
build_options.push(BuildOption::include(
306314
self.manifest_dir
307315
.join("aws-lc")

0 commit comments

Comments
 (0)