File tree 1 file changed +24
-0
lines changed
src/tools/run-make-support/src/external_deps
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,13 @@ pub struct LlvmDwarfdump {
110
110
cmd : Command ,
111
111
}
112
112
113
+ /// A `llvm-pdbutil` invocation builder.
114
+ #[ derive( Debug ) ]
115
+ #[ must_use]
116
+ pub struct LlvmPdbutil {
117
+ cmd : Command ,
118
+ }
119
+
113
120
crate :: macros:: impl_common_helpers!( LlvmReadobj ) ;
114
121
crate :: macros:: impl_common_helpers!( LlvmProfdata ) ;
115
122
crate :: macros:: impl_common_helpers!( LlvmFilecheck ) ;
@@ -118,6 +125,7 @@ crate::macros::impl_common_helpers!(LlvmAr);
118
125
crate :: macros:: impl_common_helpers!( LlvmNm ) ;
119
126
crate :: macros:: impl_common_helpers!( LlvmBcanalyzer ) ;
120
127
crate :: macros:: impl_common_helpers!( LlvmDwarfdump ) ;
128
+ crate :: macros:: impl_common_helpers!( LlvmPdbutil ) ;
121
129
122
130
/// Generate the path to the bin directory of LLVM.
123
131
#[ must_use]
@@ -360,3 +368,19 @@ impl LlvmDwarfdump {
360
368
self
361
369
}
362
370
}
371
+
372
+ impl LlvmPdbutil {
373
+ /// Construct a new `llvm-pdbutil` invocation. This assumes that `llvm-pdbutil` is available
374
+ /// at `$LLVM_BIN_DIR/llvm-pdbutil`.
375
+ pub fn new ( ) -> Self {
376
+ let llvm_pdbutil = llvm_bin_dir ( ) . join ( "llvm-pdbutil" ) ;
377
+ let cmd = Command :: new ( llvm_pdbutil) ;
378
+ Self { cmd }
379
+ }
380
+
381
+ /// Provide an input file.
382
+ pub fn input < P : AsRef < Path > > ( & mut self , path : P ) -> & mut Self {
383
+ self . cmd . arg ( path. as_ref ( ) ) ;
384
+ self
385
+ }
386
+ }
You can’t perform that action at this time.
0 commit comments