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
Reinier Maas
GHC
Commits
0b266acc
Commit
0b266acc
authored
13 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
Fix T4464 for the new way of handling main() and -rtsopts
parent
52678794
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testsuite/tests/dynlibs/Makefile
+4
-4
4 additions, 4 deletions
testsuite/tests/dynlibs/Makefile
testsuite/tests/dynlibs/T4464B.c
+9
-0
9 additions, 0 deletions
testsuite/tests/dynlibs/T4464B.c
with
13 additions
and
4 deletions
testsuite/tests/dynlibs/Makefile
+
4
−
4
View file @
0b266acc
...
...
@@ -18,16 +18,16 @@ T4464:
$(
RM
)
T4464B.o T4464C.o T4464H.hi T4464H.o
$(
RM
)
T4464H_stub.c T4464H_stub.h T4464H_stub.o
$(
RM
)
HS4464.dll HS4464.dll.a t4464.exe
'
$(
TEST_HC
)
'
$(
TEST_HC_OPTS
)
-v0
-shared
T4464H.hs T4464B.c
-o
HS4464.dll
'
$(
TEST_HC
)
'
$(
TEST_HC_OPTS
)
-v0
T4464C.c HS4464.dll.a
-o
t4464.exe
'
$(
TEST_HC
)
'
$(
TEST_HC_OPTS
)
-v0
-shared
T4464H.hs T4464B.c
-optc-DRTSOPTS
=
RtsOptsSafeOnly
-o
HS4464.dll
'
$(
TEST_HC
)
'
$(
TEST_HC_OPTS
)
-v0
T4464C.c HS4464.dll.a
-o
t4464.exe
-no-hs-main
-
./t4464.exe
echo
"====="
echo
"====="
>
&2
$(
RM
)
T4464B.o T4464C.o T4464H.hi T4464H.o
$(
RM
)
T4464H_stub.c T4464H_stub.h T4464H_stub.o
$(
RM
)
HS4464.dll HS4464.dll.a t4464.exe
'
$(
TEST_HC
)
'
$(
TEST_HC_OPTS
)
-v0
-shared
T4464H.hs T4464B.c
-o
HS4464.dll
-rtsopts
'
$(
TEST_HC
)
'
$(
TEST_HC_OPTS
)
-v0
T4464C.c HS4464.dll.a
-o
t4464.exe
'
$(
TEST_HC
)
'
$(
TEST_HC_OPTS
)
-v0
-shared
T4464H.hs T4464B.c
-optc-DRTSOPTS
=
RtsOptsAll
-o
HS4464.dll
'
$(
TEST_HC
)
'
$(
TEST_HC_OPTS
)
-v0
T4464C.c HS4464.dll.a
-o
t4464.exe
-no-hs-main
./t4464.exe
.PHONY
:
T5373
...
...
This diff is collapsed.
Click to expand it.
testsuite/tests/dynlibs/T4464B.c
+
9
−
0
View file @
0b266acc
...
...
@@ -9,7 +9,16 @@ void HsStart(void) {
// Initialize Haskell runtime
char
**
args
=
argv
;
#if __GLASGOW_HASKELL__ >= 703
{
RtsConfig
conf
=
defaultRtsConfig
;
conf
.
rts_opts_enabled
=
RTSOPTS
;
// RTSOPTS defined on the
// command line with -DRTSOPTS=...
hs_init_ghc
(
&
argc
,
&
args
,
conf
);
}
#else
hs_init
(
&
argc
,
&
args
);
#endif
// Tell Haskell about all root modules
hs_add_root
(
__stginit_T4464H
);
...
...
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