File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -619,6 +619,10 @@ def run(args):
619
619
print (f'libraries: ={ cache .get_lib_dir (absolute = True )} ' )
620
620
return 0
621
621
622
+ if '-print-resource-dir' in newargs :
623
+ shared .check_call ([clang ] + newargs )
624
+ return 0
625
+
622
626
if '-print-libgcc-file-name' in newargs or '--print-libgcc-file-name' in newargs :
623
627
settings .limit_settings (None )
624
628
compiler_rt = system_libs .Library .get_usable_variations ()['libcompiler_rt' ]
Original file line number Diff line number Diff line change @@ -818,6 +818,14 @@ def test_print_libgcc_file_name(self, args):
818
818
expected = os.path.join(libdir, 'libcompiler_rt.a')
819
819
self.assertEqual(output.strip(), expected)
820
820
821
+ def test_print_resource_dir(self):
822
+ output = self.run_process([EMCC, '-print-resource-dir'], stdout=PIPE).stdout
823
+ print(output)
824
+ lines = output.strip().splitlines()
825
+ self.assertEqual(len(lines), 1)
826
+ resource_dir = lines[0]
827
+ self.assertContained(os.path.dirname(config.LLVM_ROOT), resource_dir)
828
+
821
829
@crossplatform
822
830
@parameterized({
823
831
'': [[]],
You can’t perform that action at this time.
0 commit comments