Skip to content

Improve s390x CPU support #25056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open

Conversation

neuschaefer
Copy link

@neuschaefer neuschaefer commented Jul 15, 2025

TODO list, copied from the documentation:

  • compiler/platform.nim Add os/cpu properties.
  • lib/system.nim Add os/cpu to the documentation for system.hostOS and system.hostCPU.
  • compiler/options.nim Add special os/cpu property checks in isDefined. seems unnecessary; isn't dont for most CPUs
  • compiler/installer.ini Add os/cpu to Project.Platforms field.
  • lib/system/platforms.nim Add os/cpu.
  • std/private/osseps.nim Add os specializations.
  • lib/pure/distros.nim Add os, package handler.
  • tools/niminst/makefile.nimf Add os/cpu compiler/linker flags. already done in Support IBM Z architecture #20943
  • tools/niminst/buildsh.nimf Add os/cpu compiler/linker flags.

For csource:

  • have compiler/platform.nim updated
  • have compiler/installer.ini updated
  • have tools/niminst/buildsh.nimf updated
  • have tools/niminst/makefile.nimf updated
  • be backported to the Nim version used by the csources
  • the new csources must be pushed
  • the new csources revision must be updated in config/build_config.txt

Additionally:

Possible future work:

  • Porting Nim to s390x-specific operating systems, notably z/OS

@neuschaefer
Copy link
Author

neuschaefer commented Jul 16, 2025

Pushing the new csources would make it possible to build Nim on s390x without any tricks and manual edits, but I don't know how to re-generate the csources from the Nim repo.

@neuschaefer neuschaefer changed the title Add s390x CPU support Improve s390x CPU support Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant