Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Krook
GHC
Commits
5513fe06
Commit
5513fe06
authored
13 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
define TABLES_NEXT_TO_CODE in ghcautoconf.h (
#5933
)
parent
e212079d
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/ghc.mk
+17
-14
17 additions, 14 deletions
includes/ghc.mk
with
17 additions
and
14 deletions
includes/ghc.mk
+
17
−
14
View file @
5513fe06
...
...
@@ -37,10 +37,6 @@ ifeq "$(GhcUnregisterised)" "YES"
includes_CC_OPTS
+=
-DNO_REGS
-DUSE_MINIINTERPRETER
endif
ifeq
"$(GhcEnableTablesNextToCode) $(GhcUnregisterised)" "YES NO"
includes_CC_OPTS
+=
-DTABLES_NEXT_TO_CODE
endif
includes_CC_OPTS
+=
$(
addprefix
-I
,
$(
GHC_INCLUDE_DIRS
))
includes_CC_OPTS
+=
-Irts
...
...
@@ -48,11 +44,6 @@ ifneq "$(GhcWithSMP)" "YES"
includes_CC_OPTS
+=
-DNOSMP
endif
# The fptools configure script creates the configuration header file and puts it
# in fptools/mk/config.h. We copy it down to here (without any PACKAGE_FOO
# definitions to avoid clashes), prepending some make variables specifying cpp
# platform variables.
ifneq
"$(BINDIST)" "YES"
ifeq
"$(PORTING_HOST)" "YES"
...
...
@@ -67,8 +58,24 @@ $(includes_H_CONFIG) : mk/config.h mk/config.mk includes/ghc.mk | $$(dir $$@)/.
@
echo
"Creating
$@
..."
@
echo
"#ifndef __GHCAUTOCONF_H__"
>
$@
@
echo
"#define __GHCAUTOCONF_H__"
>>
$@
# Turn '#define PACKAGE_FOO "blah"' into '/* #undef PACKAGE_FOO */'.
#
# Copy the contents of mk/config.h, turning '#define PACKAGE_FOO
# "blah"' into '/* #undef PACKAGE_FOO */' to avoid clashes.
#
@sed
's,^\([ ]*\)#[ ]*define[ ][ ]*\(PACKAGE_[A-Z]*\)[ ][ ]*".*".*$$,\1/* #undef \2 */,'
mk/config.h
>>
$@
#
# Tack on some extra config information from the build system
#
ifeq
"$(GhcEnableTablesNextToCode) $(GhcUnregisterised)" "YES NO"
@echo
>>
$@
@echo
"#define TABLES_NEXT_TO_CODE 1"
>>
$@
endif
#
ifeq
"$(CC_LLVM_BACKEND)" "1"
@echo
>>
$@
@echo
"#define llvm_CC_FLAVOR 1"
>>
$@
endif
#
@echo
"#endif /* __GHCAUTOCONF_H__ */"
>>
$@
@echo
"Done."
...
...
@@ -105,10 +112,6 @@ endif
@
echo
"#define
$(
TargetVendor_CPP
)
_HOST_VENDOR 1"
>>
$@
@
echo
"#define BUILD_VENDOR
\"
$(
HostVendor_CPP
)
\"
"
>>
$@
@
echo
"#define HOST_VENDOR
\"
$(
TargetVendor_CPP
)
\"
"
>>
$@
ifeq
"$(CC_LLVM_BACKEND)" "1"
@
echo
>>
$@
@
echo
"#define llvm_CC_FLAVOR 1"
>>
$@
endif
@
echo
>>
$@
@
echo
"/* These TARGET macros are for backwards compatibily... DO NOT USE! */"
>>
$@
@
echo
"#define TargetPlatform_TYPE
$(
TargetPlatform_CPP
)
"
>>
$@
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment