diff options
author | Will Nations <willnationsdev@gmail.com> | 2018-01-18 21:13:48 -0600 |
---|---|---|
committer | Will Nations <willnationsdev@gmail.com> | 2018-01-18 22:16:11 -0600 |
commit | a025ca5fc66ad897ac7a8ac9db1f79cb51026ebc (patch) | |
tree | c303a3c47be5f1e2dc850bbfaa5fb676ed3737ab | |
parent | 9d98e6d2e44cc07efbac703e6a4a276d45818408 (diff) |
Include .hpp files in VS scons builds. Fixed Typo.
-rw-r--r-- | SConstruct | 2 | ||||
-rw-r--r-- | methods.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 987fd561b3..f71c6a397c 100644 --- a/SConstruct +++ b/SConstruct @@ -290,6 +290,8 @@ if selected_platform in platform_list: basename = basename.replace('\\\\', '/') if os.path.isfile(basename + ".h"): env.vs_incs = env.vs_incs + [basename + ".h"] + elif os.path.isfile(basename + ".hpp"): + env.vs_incs = env.vs_incs + [basename + ".hpp"] if os.path.isfile(basename + ".c"): env.vs_srcs = env.vs_srcs + [basename + ".c"] elif os.path.isfile(basename + ".cpp"): diff --git a/methods.py b/methods.py index 892fa8cfc3..a8f1fb8a5d 100644 --- a/methods.py +++ b/methods.py @@ -1598,7 +1598,7 @@ def detect_visual_c_compiler_version(tools_env): # and not scons setup environment (env)... so make sure you call the right environment on it or it will fail to detect # the proper vc version that will be called - # These is no flag to give to visual c compilers to set the architecture, ie scons bits argument (32,64,ARM etc) + # There is no flag to give to visual c compilers to set the architecture, ie scons bits argument (32,64,ARM etc) # There are many different cl.exe files that are run, and each one compiles & links to a different architecture # As far as I know, the only way to figure out what compiler will be run when Scons calls cl.exe via Program() # is to check the PATH variable and figure out which one will be called first. Code bellow does that and returns: |