Skip to content

Commit

Permalink
Add msvc4.0, msvc4.20 support + lego island preset
Browse files Browse the repository at this point in the history
  • Loading branch information
ItzSwirlz committed Sep 3, 2023
1 parent 7c2f375 commit 3427f60
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/compilers/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,8 @@ def download_win9x():
)
download_tar(url=url, dest_name=compiler)

download_zip(url="https://github.com/itsmattkc/MSVC400/archive/refs/heads/master.zip", dest_name="msvc40")
download_zip(url="https://github.com/itsmattkc/MSVC420/archive/refs/heads/master.zip", dest_name="msvc42")

def main(args):
def should_download(platform):
Expand Down
19 changes: 19 additions & 0 deletions backend/coreapp/compilers.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,18 @@ def preset_from_name(name: str) -> Optional[Preset]:

CL_WIN = '${WINE} "${COMPILER_DIR}"/Bin/CL.EXE /c /nologo /IZ:"${COMPILER_DIR}"/Include/ ${COMPILER_FLAGS} /Fd"Z:/tmp/" /Fo"Z:${OUTPUT}" "Z:${INPUT}"'

MSVC40 = MSVCCompiler(
id="msvc40",
platform=WIN9X,
cc=CL_WIN,
)

MSVC42 = MSVCCompiler(
id="msvc42",
platform=WIN9X,
cc=CL_WIN,
)

MSVC60 = MSVCCompiler(
id="msvc6.0",
platform=WIN9X,
Expand Down Expand Up @@ -1222,6 +1234,8 @@ def preset_from_name(name: str) -> Optional[Preset]:
XCODE_GCC400_CPP,
PBX_GCC3,
# WIN9X
MSVC40,
MSVC42,
MSVC60,
MSVC63,
MSVC64,
Expand Down Expand Up @@ -1740,6 +1754,11 @@ def preset_from_name(name: str) -> Optional[Preset]:
EE_GCC29_991111_01,
"-x c++ -O2 -gstabs -fno-exceptions -finline-functions",
),
# Windows
Preset("LEGO Island",
MSVC42,
"/W3 /GX /O2"
)
]


Expand Down
2 changes: 2 additions & 0 deletions frontend/src/lib/i18n/locales/en/compilers.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
"ido7.1": "IDO 7.1",
"ido7.1Pascal": "IDO 7.1 Pascal",
"mips_pro_744": "MIPS Pro 7.4.4",
"msvc40": "Microsoft Visual C/C++ 4.0",
"msvc42": "Microsoft Visual C/C++ 4.2",
"msvc6.0": "Microsoft Visual C/C++ 6.0",
"msvc6.3": "Microsoft Visual C/C++ 6.0 Service Pack 3",
"msvc6.4": "Microsoft Visual C/C++ 6.0 Service Pack 4",
Expand Down

0 comments on commit 3427f60

Please sign in to comment.