mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Remove mt check, we want to use llvm-mt
This commit is contained in:
parent
9d3a637b07
commit
96a5c8f95a
1 changed files with 0 additions and 18 deletions
|
|
@ -376,24 +376,6 @@ def sdk_bin_path(valid_windows_sdk_dir, valid_ucrt_sdk_dir):
|
|||
mt = check_prog('MT', depends_win()(lambda: ('mt.exe',)), input='MT',
|
||||
paths=sdk_bin_path)
|
||||
|
||||
|
||||
# Check that MT is not something unexpected like "magnetic tape manipulation
|
||||
# utility".
|
||||
@depends_win(mt)
|
||||
@checking('whether MT is really Microsoft Manifest Tool', lambda x: bool(x))
|
||||
@imports('subprocess')
|
||||
def valid_mt(path):
|
||||
try:
|
||||
out = subprocess.check_output([path]).splitlines()
|
||||
out = '\n'.join(l for l in out
|
||||
if 'Microsoft (R) Manifest Tool' in l)
|
||||
if out:
|
||||
return path
|
||||
except subprocess.CalledProcessError:
|
||||
pass
|
||||
raise FatalCheckError('%s is not Microsoft Manifest Tool')
|
||||
|
||||
|
||||
set_config('MSMANIFEST_TOOL', depends(valid_mt)(lambda x: bool(x)))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue