Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,354
    • Issues 5,354
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 569
    • Merge requests 569
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #3426
Closed
Open
Issue created Aug 11, 2009 by Ian Lynagh <igloo@earth.li>@trac-igloo

Misuse of SRC_HC_OPTS

Originally reported here: http://www.haskell.org/pipermail/cvs-ghc/2009-May/048719.html


Thu May 21 07:19:38 PDT 2009  Ian Lynagh<igloo at earth.li>
   * Don't overwrite the *OPTS/*Opts variables in mk/validate-settings.mk
   Overwriting means we lose the -m64 on OS X 64.

     M ./mk/validate-settings.mk -5 +5

This is a bit worrying. We are really mis-using SRC_HC_OPTS all over the place (e.g. build.mk.sample), but usually we get away with it because SRC_HC_OPTS is only used for things like optimisation and heap settings that won't cause the build to fail if they are lost.

The right thing to do would be to introduce new variables for flags like optimisation and heap settings, that can safely be overriden, and keep SRC_HC_OPTS for flags that are part of the build system.

In any case, we need to do something here. If SRC_HC_OPTS cannot be overridden, the docs are wrong, and build.mk.sample is broken.

Trac metadata
Trac field Value
Version 6.10.4
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking