Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
3d8e6f6b
Commit
3d8e6f6b
authored
Apr 29, 2011
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add stage-specific AS variables to the build system
parent
feabe993
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
mk/config.mk.in
mk/config.mk.in
+5
-0
rules/c-suffix-rules.mk
rules/c-suffix-rules.mk
+1
-1
rules/package-config.mk
rules/package-config.mk
+1
-0
No files found.
mk/config.mk.in
View file @
3d8e6f6b
...
...
@@ -548,6 +548,11 @@ CC_STAGE0 = @CC_STAGE0@
CC_STAGE1
=
$(CC)
CC_STAGE2
=
$(CC)
CC_STAGE3
=
$(CC)
AS
=
$(WhatGccIsCalled)
AS_STAGE0
=
@CC_STAGE0@
AS_STAGE1
=
$(AS)
AS_STAGE2
=
$(AS)
AS_STAGE3
=
$(AS)
# C compiler and linker flags from configure (e.g. -m<blah> to select
# correct C compiler backend). The stage number is the stage of GHC
...
...
rules/c-suffix-rules.mk
View file @
3d8e6f6b
...
...
@@ -49,7 +49,7 @@ $1/$2/build/%.$$($3_osuf) : $1/$2/build/%.c
"
$$
(
$1_$2_CC
)"
$$
(
$1_$2_$3_ALL_CC_OPTS
)
-c
$$
<
-o
$$
@
$1/$2/build/%.$$($3_osuf)
:
$1/$2/build/%.$$($3_way_)s
"
$
$(AS)
"
$$
(
$1_$2_$3_ALL_AS_OPTS
)
-o
$$
@
$$
<
"
$$
(
$1_$2_
AS
)"
$$
(
$1_$2_$3_ALL_AS_OPTS
)
-o
$$
@
$$
<
$1/$2/build/%.$$($3_osuf)
:
$1/%.S | $$$$(dir $$$$@)/.
"
$$
(
$1_$2_CC
)"
$$
(
$1_$2_$3_ALL_CC_OPTS
)
-c
$$
<
-o
$$
@
...
...
rules/package-config.mk
View file @
3d8e6f6b
...
...
@@ -17,6 +17,7 @@ $(call profStart, package-config($1,$2,$3))
$1_$2_HC
=
$$
(
GHC_STAGE
$3
)
$1_$2_CC
=
$$
(
CC_STAGE
$3
)
$1_$2_AS
=
$$
(
AS_STAGE
$3
)
$1_$2_AR
=
$$
(
AR_STAGE
$3
)
$1_$2_AR_OPTS
=
$$
(
AR_OPTS_STAGE
$3
)
$1_$2_EXTRA_AR_ARGS
=
$$
(
EXTRA_AR_ARGS_STAGE
$3
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment