Set the Windows subsystem using a rust directive

This is one less thing that mach has to do now.
This commit is contained in:
Martin Robinson 2023-07-01 15:00:24 +02:00
parent f034eb6032
commit e681e2b3f3
2 changed files with 6 additions and 5 deletions

View file

@ -425,11 +425,6 @@ class MachCommands(CommandBase):
)
assert os.path.exists(servo_exe_dir)
# on msvc builds, use editbin to change the subsystem to windows, but only
# on release builds -- on debug builds, it hides log output
if not dev and not libsimpleservo:
call(["editbin", "/nologo", "/subsystem:windows", path.join(servo_exe_dir, "servo.exe")],
verbose=verbose)
# on msvc, we need to copy in some DLLs in to the servo.exe dir and the directory for unit tests.
for ssl_lib in ["libssl.dll", "libcrypto.dll"]:
ssl_path = path.join(env['OPENSSL_LIB_DIR'], "../bin", ssl_lib)