scons: msvc_is_detected not available in 2.1
This commit is contained in:
parent
a20da0c048
commit
8087be05c7
1 changed files with 1 additions and 1 deletions
|
@ -668,7 +668,7 @@ if (env["openssl"] != "system"): # builtin
|
|||
# Workaround for compilation error with GCC/Clang when -Werror is too greedy (GH-4517)
|
||||
import os
|
||||
import methods
|
||||
if not (os.name=="nt" and methods.msvc_is_detected()): # not Windows and not MSVC
|
||||
if not (os.name=="nt" and os.getenv("VSINSTALLDIR") != None): # not Windows and not MSVC
|
||||
env_openssl.Append(CFLAGS = ["-Wno-error=implicit-function-declaration"])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue