diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-08-27 10:03:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-27 10:03:06 -0400 |
| commit | 3cbff11a883f3ad1cf793ac92b399a59dfed3168 (patch) | |
| tree | 0f8b68c44f21fd58d4dcecebd9d2640a2b7d47ef /premake5.lua | |
| parent | ec55ac4217eb5a9eedacc09888c846cd4b3a5add (diff) | |
Removed use of pthreads in glslang (#1517)
* Try removing pthreads from glslang.
* Update slang-binaries to use glslang that doesn't use pthreads.
Co-authored-by: Tim Foley <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'premake5.lua')
| -rw-r--r-- | premake5.lua | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/premake5.lua b/premake5.lua index e78afa354..17313b825 100644 --- a/premake5.lua +++ b/premake5.lua @@ -1010,8 +1010,8 @@ standardProject "slang-spirv-tools" addSourceDir("external/spirv-tools/source/val") filter { "system:linux or macosx" } - links { "dl", "pthread" } - buildoptions{"-fPIC", "-pthread"} + links { "dl"} + buildoptions{"-fPIC"} -- -- The single most complicated part of our build is our custom version of glslang. @@ -1048,7 +1048,6 @@ standardProject "slang-glslang" addSourceDir("external/glslang/glslang/GenericCodeGen") addSourceDir("external/glslang/glslang/MachineIndependent") addSourceDir("external/glslang/glslang/MachineIndependent/preprocessor") - addSourceDir("external/glslang/glslang/OSDependent") addSourceDir("external/glslang/OGLCompilersDLL") addSourceDir("external/glslang/SPIRV") addSourceDir("external/glslang/StandAlone") @@ -1069,13 +1068,11 @@ standardProject "slang-glslang" -- On Windows we need to add the platform-specific sources and then -- remove the `main.cpp` file since it tries to define a `DllMain` -- and we don't want the default glslang one. - addSourceDir( "external/glslang/glslang/OSDependent/Windows" ) removefiles { "external/glslang/glslang/OSDependent/Windows/main.cpp" } filter { "system:linux or macosx" } - links { "dl", "pthread" } - addSourceDir("external/glslang/glslang/OSDependent/Unix") - buildoptions{"-fPIC", "-pthread"} + links { "dl" } + buildoptions{"-fPIC"} |
