File tree 2 files changed +4
-4
lines changed
otherlibs/build-info/test
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,9 @@ Check what the generated build info module looks like:
99
99
None
100
100
[@@ inline never]
101
101
102
- let p1 = eval " %% DUNE_PLACEHOLDER :64:vcs-describe:1:a%%%%%%%%%%%%%%%%%%%%%%%%%%"
103
- let p2 = eval " %% DUNE_PLACEHOLDER :64:vcs-describe:1:b%%%%%%%%%%%%%%%%%%%%%%%%%%"
104
- let p0 = eval " %% DUNE_PLACEHOLDER :64:vcs-describe:1:c%%%%%%%%%%%%%%%%%%%%%%%%%%"
102
+ let p1 = eval (Sys . opaque_identity " %% DUNE_PLACEHOLDER :64:vcs-describe:1:a%%%%%%%%%%%%%%%%%%%%%%%%%%" )
103
+ let p2 = eval (Sys . opaque_identity " %% DUNE_PLACEHOLDER :64:vcs-describe:1:b%%%%%%%%%%%%%%%%%%%%%%%%%%" )
104
+ let p0 = eval (Sys . opaque_identity " %% DUNE_PLACEHOLDER :64:vcs-describe:1:c%%%%%%%%%%%%%%%%%%%%%%%%%%" )
105
105
106
106
let version = p0
107
107
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ let build_info_code cctx ~libs ~api_version =
160
160
pr buf " [@@inline never]" ;
161
161
pr buf " " ;
162
162
Path.Source.Map. iteri ! placeholders ~f: (fun path var ->
163
- pr buf " let %s = eval %S " var
163
+ pr buf " let %s = eval (Sys.opaque_identity %S) " var
164
164
(Artifact_substitution. encode ~min_len: 64 (Vcs_describe path)));
165
165
if not (Path.Source.Map. is_empty ! placeholders) then pr buf " " ;
166
166
pr buf " let version = %s" version;
You can’t perform that action at this time.
0 commit comments