Skip to content
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

Cleanups in C, Tcl, and GitHub CI #703

Merged
merged 3 commits into from
May 28, 2024
Merged

Conversation

quark17
Copy link
Collaborator

@quark17 quark17 commented May 28, 2024

These are misc cleanups that I made while exploring adding the new GHC 9.10.1 to our GitHub CI.

  1. Updates an ancient C syntax used in bluetcl_Main.hsc that newer compilers warn will be deprecated in newer C standards (-Wdeprecated-non-prototype).
  2. Cleans up how the tcllibs flags are computed in platform.sh, to remove TCL_VER (which was a duplicate definition and which was being improperly define anyway due to a syntax error). More significantly, this adds the version number to the flag for macOS (from -ltcl to -ltcl8.5) -- which was intended to be added, but because TCL_VER was failing to be defined properly, an empty string was being appended. It's better to have the version suffix, just to ensure that the right library is being picked up.
  3. Add support in the GitHub CI for leaving the hls_version field blank, to indicate that the HLS testing step should be skipped. This allows for testing newer GHC installations that are available in GHCUP but don't yet have HLS supportin GHCUP.

quark17 added 3 commits May 28, 2024 11:32
Newer GHC may not yet have HLS support, but we might still like to
test building BSC with it.  This updates the parameterized workflow
to allow specifying an empty HLS version string, causing the
testing of HLS to be skipped.
This notation for declaring function arguments is no longer supported
in newer C standards.
Remove TCL_VER, which was not being set properly due to a syntax error
and which is a duplicate definition of TCL_SUFFIX anyway.  And include
the suffix on the macOS lib flag, just to ensure that the right library
is being linked.
@quark17 quark17 merged commit e9e4ac6 into B-Lang-org:main May 28, 2024
49 checks passed
@quark17 quark17 deleted the misc-cleanups branch May 28, 2024 23:12
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