summaryrefslogtreecommitdiffstats
path: root/tools/windows.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1601 from Ivorforce/ltoDavid Snopek2024-11-121-0/+8
|\ | | | | Add lto scons option
| * Add lto scons option, defaulting to "none".Lukas Tenbrink2024-11-121-0/+8
| |
* | [SCons] Remove use_clang_cl windows flag in favor of generic use_llvmFabio Alessandrelli2024-09-221-3/+2
|/ | | | This is consistent with Godot upstream.
* Add support for LLVM/MinGW and ARM64 Windows builds.bruvzg2024-08-121-7/+47
|
* Merge pull request #1507 from Repiteo/silence-msvcDavid Snopek2024-06-251-0/+69
|\ | | | | SCons: Add `silence_msvc` option for Windows
| * SCons: Add `silence_msvc` optionThaddeus Crews2024-06-251-0/+69
| |
* | Integrate `.pre-commit-config.yaml`Thaddeus Crews2024-06-241-4/+4
|/
* [SCons] Split `targets.py`, apply flags from toolsFabio Alessandrelli2024-02-161-2/+3
| | | | | | | | | Split `targets` tool logic, moving all the compiler-specific flags to a new `common_compiler_flags.py` file, and everything else (CPPDEFINES, optimize option logic, dev build logic, etc) to the `godotcpp` tool. The default tools now apply the common compiler flags by importing the file and explicitly calling `configure`.
* SCons: Disable C++ exception handling by defaultRĂ©mi Verschelde2023-10-221-1/+1
| | | | Counterpart to https://github.com/godotengine/godot/pull/80612.
* Statically link mingw/msvc runtime libraries on WindowsFeiyun Wang2023-08-091-10/+28
| | | | Co-authored-by: David Snopek <dsnopek@gmail.com>
* Add platform macrosAdam Scott2023-07-231-0/+2
|
* [MSVC] Force UTF-8 encoding.bruvzg2023-07-111-1/+1
|
* [SCons] Platform agnostic default toolchain (GNU).Fabio Alessandrelli2022-12-201-0/+5
| | | | | | | Create the SCons Environment with an empty PLATFORM variable to force the default tools to use the GNU toolchain. Platform specific toolchains are then setup in our custom tools.
* [SCons] Link MSVC debug runtime for optimize=none|debug only.Fabio Alessandrelli2022-11-211-4/+0
| | | | | Select windows runtime in "targets" tool, use "/MDd" flag only when building with optimize="none" and optimize="debug".
* [SCons] Remove bogus CCFLAGS from windows toolchain.Fabio Alessandrelli2022-11-021-2/+0
| | | | The c++ standard is added as part of the main SConstruct
* [SCons] Add "optimize" and "debug_symbols" optionsFabio Alessandrelli2022-09-121-5/+6
| | | | | | | | | optimize = auto|none|debug|speed|size|0|1|2|3 debug_symbol = True|False optimize == "auto" will produce: - "debug" for "debug" builds - "speed" for "release" builds
* [MSVC] Add NOMINMAX flag to scons and cmake.Fabio Alessandrelli2022-09-121-1/+1
| | | | | Ensures user inclusion of windows.h do not define "min" and "max" macros.
* Add debug information to Windows buildsKevin Smith2022-07-281-0/+1
| | | | | | | | | | | | | | | Previously, Windows builds were being produced without debug information, leading to somewhat unhelpful backtraces etc. without symbols. This builds the symbols in (only for debug builds - I've deliberately not touched release builds here) so gdextension bugs are a little more tractable. Test-Information: Have been running this patch for weeks, and getting useful traces out on the commandline, and useful debugging from debuggers.
* Add clang-cl supportKevin Smith2022-07-121-0/+4
| | | | | | | | | | | | | | | | | Visual C++ has a clang-based driver, available through the clang-cl wrapper (which provides the same interface as cl) - this generates objects binary-compatible with the default (traditional) driver, and can then be linked in the normal way. As such, this patch simply configures for MSVCC and then overwrites the cl compiler with clang-cl in the environment. Clang gives (subjectively) much more understandable compiler warnings and errors than MSVCC, which was my motivation for switching. Test-Information: Builds for me with VS2022, and my gdextension library builds and links.
* [SCons] Fix msvc, linux-clang, add version check.Fabio Alessandrelli2022-07-041-7/+6
|
* [SCons] Move toolchains logic to tools folder.Fabio Alessandrelli2022-06-271-0/+68