mirror of
https://github.com/mii443/mozc.git
synced 2025-12-07 21:28:28 +00:00
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:
committed by
Hiroyuki Komatsu
parent
325a0d300b
commit
90fb8f860d
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user