ignore entry point in Manged C++
This commit is contained in:
parent
2773fd8c1c
commit
6c7b1939d8
@ -320,7 +320,7 @@
|
||||
if cfg.platform == "x64"
|
||||
or cfg.flags.Managed
|
||||
or premake.config.isoptimizedbuild(cfg.flags)
|
||||
or cfg.flags.NoEditAndContinue -- then
|
||||
or cfg.flags.NoEditAndContinue
|
||||
then
|
||||
debug_info = "ProgramDatabase"
|
||||
else
|
||||
@ -494,7 +494,7 @@
|
||||
|
||||
common_link_section(cfg)
|
||||
|
||||
if vc2010.config_type(cfg) == 'Application' and not cfg.flags.WinMain then
|
||||
if vc2010.config_type(cfg) == 'Application' and not cfg.flags.WinMain and not cfg.flags.Managed then
|
||||
_p(3,'<EntryPointSymbol>mainCRTStartup</EntryPointSymbol>')
|
||||
end
|
||||
|
||||
|
@ -320,9 +320,9 @@ end
|
||||
|
||||
function vs10_managedFlag.globals_bufferContainsKeywordManagedCProj()
|
||||
local sln, prj = vs10_managedFlag_setOnProject()
|
||||
--HACK ALERT
|
||||
--For some reason the flags are not set on a proj when testing (yet they are recorded in prj.blocks)
|
||||
--whilst in normal run mode, flags are set on the project ?
|
||||
--HACK ALERT
|
||||
--For some reason the flags are not set on a proj when testing (yet they are recorded in prj.blocks)
|
||||
--whilst in normal run mode, flags are set on the project ?
|
||||
prj.flags = {["Managed"]=1}
|
||||
local buffer = get_managed_buffer(sln,prj)
|
||||
test.string_contains(buffer,'<PropertyGroup Label="Globals">.*<Keyword>ManagedCProj</Keyword>.*</PropertyGroup>')
|
||||
@ -372,3 +372,8 @@ function vs10_managedFlag.noOptimisationFlag_basicRuntimeChecksNotFoundInBuffer(
|
||||
test.string_does_not_contain(buffer,'<BasicRuntimeChecks>.*</BasicRuntimeChecks>')
|
||||
end
|
||||
|
||||
function vs10_managedFlag.applictionWithOutWinMain_EntryPointSymbolNotFoundInBuffer()
|
||||
local sln, prj = vs10_managedFlag_setOnProject()
|
||||
local buffer = get_managed_buffer(sln,prj)
|
||||
test.string_does_not_contain(buffer,'<EntryPointSymbol>.*</EntryPointSymbol>')
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user