winmain: Force the Windows subsystem

The source file has a pragma comment for msvc, but it doesn't work for other compilers. All targets that depend on this winmain library will have the linkopt.

PiperOrigin-RevId: 513093371
This commit is contained in:
Emma Haruka Iwao
2023-03-01 11:09:45 +09:00
committed by Hiroyuki Komatsu
parent 325a0d300b
commit 90fb8f860d

View File

@@ -169,6 +169,8 @@ mozc_cc_binary(
mozc_cc_library(
name = "winmain",
hdrs = ["winmain.h"],
# Force the Windows subsystem
linkopts = ["/SUBSYSTEM:WINDOWS"],
tags = MOZC_TAGS.WIN_ONLY,
target_compatible_with = ["@platforms//os:windows"],
visibility = [