From 0aa440a22ab18bc4a9077fcf17966ed4949d684b Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Mon, 25 Sep 2017 09:35:34 -0700 Subject: Fixup: deal with hitting `.obj` size limits for VS When using the lumped/"unity" build approach for Slang, the resulting `.obj` files run into number-of-sections limits in the VS linker. For now I'm using the `/bigobj` command-line flag to work around this for the `hello` example, just so I can be sure the lumped build still works, but longer term it seems like we need to just drop that approach anyway. The `render-test` application was switched to link against `slang.dll` since there is no reason to have multiple apps use the lumped approach. --- examples/hello/hello.vcxproj | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples') diff --git a/examples/hello/hello.vcxproj b/examples/hello/hello.vcxproj index 365d74164..635cf985a 100644 --- a/examples/hello/hello.vcxproj +++ b/examples/hello/hello.vcxproj @@ -96,6 +96,7 @@ Level3 Disabled WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + /bigobj %(AdditionalOptions) Windows @@ -109,6 +110,7 @@ Level3 Disabled _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + /bigobj %(AdditionalOptions) Windows @@ -124,6 +126,7 @@ true true WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + /bigobj %(AdditionalOptions) Windows @@ -141,6 +144,7 @@ true true NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + /bigobj %(AdditionalOptions) Windows -- cgit v1.2.3