Skip to content

Commit

Permalink
[core] Don't set default entrypoint, rely on visual studio default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom van Dijck committed May 1, 2017
1 parent b9fcad8 commit fcb76a1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
3 changes: 0 additions & 3 deletions src/_premake_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,4 @@
filter { "system:macosx" }
toolset "clang"

filter { "system:windows", "kind:WindowedApp or ConsoleApp" }
entrypoint "mainCRTStartup"

filter {}
3 changes: 0 additions & 3 deletions tests/actions/vstudio/vc200x/test_linker_block.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
LinkIncremental="2"
GenerateDebugInformation="false"
SubSystem="1"
EntryPointSymbol="mainCRTStartup"
TargetMachine="1"
/>
]]
Expand All @@ -62,7 +61,6 @@
LinkIncremental="2"
GenerateDebugInformation="false"
SubSystem="2"
EntryPointSymbol="mainCRTStartup"
TargetMachine="1"
/>
]]
Expand Down Expand Up @@ -138,7 +136,6 @@
LinkIncremental="2"
GenerateDebugInformation="true"
SubSystem="1"
EntryPointSymbol="mainCRTStartup"
TargetMachine="1"
/>
]]
Expand Down
2 changes: 0 additions & 2 deletions tests/actions/vstudio/vc2010/test_excluded_configs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
test.capture [[
<Link>
<SubSystem>Console</SubSystem>
<EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
</Link>
]]
end
Expand All @@ -71,7 +70,6 @@
<Link>
<SubSystem>Console</SubSystem>
<AdditionalDependencies>bin\Ares\Debug\MyProject2.lib;%(AdditionalDependencies)</AdditionalDependencies>
<EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
</Link>
<ProjectReference>
<LinkLibraryDependencies>false</LinkLibraryDependencies>
Expand Down
19 changes: 16 additions & 3 deletions tests/actions/vstudio/vc2010/test_link.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
test.capture [[
<Link>
<SubSystem>Console</SubSystem>
<EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
]]
end

Expand All @@ -82,7 +81,6 @@
test.capture [[
<Link>
<SubSystem>Windows</SubSystem>
<EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
]]
end

Expand All @@ -108,6 +106,22 @@
end


--
-- Test the handling of the entrypoint API.
--
function suite.onEntryPoint()
kind "ConsoleApp"
entrypoint "foobar"
prepare()
test.capture [[
<Link>
<SubSystem>Console</SubSystem>
<EntryPointSymbol>foobar</EntryPointSymbol>
</Link>
]]
end


--
-- Test the handling of the NoImplicitLink flag.
--
Expand Down Expand Up @@ -508,7 +522,6 @@
test.capture [[
<Link>
<SubSystem>Console</SubSystem>
<EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
<TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors>
]]
end
Expand Down

0 comments on commit fcb76a1

Please sign in to comment.