ignore entry point in Manged C++

This commit is contained in:
liamDevine 2011-04-30 00:57:49 +01:00
parent 2773fd8c1c
commit 6c7b1939d8
2 changed files with 10 additions and 5 deletions

View File

@ -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

View File

@ -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