Skip to content

Commit

Permalink
Add floating point flags to msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
widberg committed Aug 11, 2024
1 parent d01bbbd commit 960c96f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/coreapp/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def to_json(self) -> Dict[str, Union[str, List[str]]]:
id="msvc_opt_level", flags=["/Od", "/O1", "/O2", "/Os", "/Ot", "/Og", "/Ox"]
),
FlagSet(id="msvc_codegen", flags=["/GB", "/G3", "/G4", "/G5", "/G6"]),
FlagSet(id="msvc_fp", flags=["/fp:precise", "/fp:strict", "/fp:fast"]),
Checkbox("msvc_compile_cpp", "/TP"),
Checkbox("msvc_use_rtti", "/GR"),
Checkbox("msvc_use_ehsc", "/GX"),
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/lib/i18n/locales/en/compilers.json
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,10 @@
"msvc_codegen./G5": "optimize for Pentium",
"msvc_codegen./G6": "optimize for Pentium Pro",
"msvc_codegen./GB": "optimize for blended model",
"msvc_fp": "Floating point",
"msvc_fp./fp:precise": "favor precision",
"msvc_fp./fp:strict": "favor safety and control",
"msvc_fp./fp:fast": "favor speed",
"msvc_compile_cpp": "compile as C++",
"msvc_use_rtti": "enable C++ RTTI",
"msvc_use_ehsc": "enable C++ EH",
Expand Down

0 comments on commit 960c96f

Please sign in to comment.