Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
cloogle.org
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cloogle
cloogle.org
Commits
c1a2571a
Verified
Commit
c1a2571a
authored
Dec 13, 2018
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile with -funcmayfail
parent
6dce9d63
Pipeline
#17190
failed with stage
in 7 minutes and 10 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
17 deletions
+31
-17
backend/Builtin/Predef.icl
backend/Builtin/Predef.icl
+3
-0
backend/Cloogle
backend/Cloogle
+1
-1
backend/CloogleServer.icl
backend/CloogleServer.icl
+3
-1
backend/Makefile
backend/Makefile
+20
-13
backend/build.sh
backend/build.sh
+1
-1
backend/builddb.icl
backend/builddb.icl
+3
-1
No files found.
backend/Builtin/Predef.icl
View file @
c1a2571a
...
...
@@ -5,6 +5,7 @@ import StdBool
import
StdEnum
import
StdInt
import
StdList
import
StdMisc
import
StdOverloaded
import
StdString
...
...
@@ -151,9 +152,11 @@ where
[
'#'
]
->
"n unboxed"
[
'!'
]
->
" head strict"
[
'|'
]
->
"n overloaded"
_
->
abort
"error in make_list
\n
"
spine
=
case
s
of
[]
->
""
[
'!'
]
->
" spine strict"
_
->
abort
"error in make_list
\n
"
description
=
"These types of list are available:
\n\n
"
+
"- {{`[a]`}}, a normal list
\n
"
+
...
...
Cloogle
@
12d1a74a
Compare
94c4bb99
...
12d1a74a
Subproject commit
94c4bb99fa1e508684658707a30657973e312d41
Subproject commit
12d1a74a1d53bdcfd9927c067372bbdf302aa5d2
backend/CloogleServer.icl
View file @
c1a2571a
...
...
@@ -166,7 +166,9 @@ optionDescription = WithHelp True $ Options
]
Start
w
#
([
prog
:
args
],
w
)
=
getCommandLine
w
#
(
prog
,
args
,
w
)
=
case
getCommandLine
w
of
([
prog
:
args
],
w
)
->
(
prog
,
args
,
w
)
_
->
abort
"getCommandLine returned 0 elements
\n
"
#
opts
=
parseOptions
optionDescription
args
zero
|
isError
opts
#
(
io
,
w
)
=
stdio
w
...
...
backend/Makefile
View file @
c1a2571a
...
...
@@ -2,7 +2,7 @@ SHELL:=bash
BIN
:=
builddb CloogleServer
DB
=
types.json
CLM
:=
clm
CLMFLAGS
:=
-h
250M
-nr
-nortsopts
\
CLMFLAGS
_BOOTSTRAP
:=
-h
250M
-nr
-nortsopts
\
-P
'Cloogle'
\
-IL
StdEnv
\
-IL
TCPIP
\
...
...
@@ -12,27 +12,34 @@ CLMFLAGS:=-h 250M -nr -nortsopts\
-I
Cloogle/libcloogle
\
-I
Cloogle/CleanRegex
ifeq
"$(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 6)" "1"
CLMFLAGS
+=
-l
-no-pie
CLMFLAGS
_BOOTSTRAP
+=
-l
-no-pie
endif
CLMFLAGS
:=
$(CLMFLAGS_BOOTSTRAP)
-funcmayfail
CLMLIBS_COMPILER
:=
\
-I
Cloogle/compiler/frontend
\
-I
Cloogle/compiler/backend
\
-I
Cloogle/compiler/main
\
-I
Cloogle/compiler/main/Unix
\
.PHONY
:
all clean .FORCE
.PHONY
:
all
bootstrap bootstrap_compiler
clean .FORCE
all
:
$(BIN) $(DB)
man
:
$(MAN)
CloogleServer
:
.FORCE
$(CLM)
$(CLMFLAGS)
$@
-o
$@
find
-name
'*.[di]cl'
-not
-path
'./Cloogle/compiler/*'
-exec
touch
{}
\;
CloogleServer
:
bootstrap .FORCE
$(CLM)
$(CLMFLAGS)
$@
-o
$@
builddb
:
Cloogle/compiler .FORCE
$(CLM)
$(CLMFLAGS)
-s
50M
-h
750M
-gcm
\
-I
Cloogle/compiler/frontend
\
-I
Cloogle/compiler/backend
\
-I
Cloogle/compiler/main
\
-I
Cloogle/compiler/main/Unix
\
$@
-o
$@
builddb
:
bootstrap bootstrap_compiler .FORCE
$(CLM)
$(CLMFLAGS)
$(CLMLIBS_COMPILER)
-s
50M
-h
750M
-gcm
$@
-o
$@
bootstrap
:
.FORCE
$(CLM)
$(CLMFLAGS_BOOTSTRAP)
-PABC
StdEnv
$(CLM)
$(CLMFLAGS_BOOTSTRAP)
-PABC
StdMaybe
$(CLM)
$(CLMFLAGS_BOOTSTRAP)
-PABC
TCPIP
bootstrap_compiler
:
Cloogle/compiler .FORCE
$(CLM)
$(CLMFLAGS_BOOTSTRAP)
$(CLMLIBS_COMPILER)
-PABC
cocl
Cloogle/compiler
:
.FORCE
$(MAKE)
-C
Cloogle compiler
...
...
backend/build.sh
View file @
c1a2571a
...
...
@@ -2,7 +2,7 @@
set
-ev
PATCHCLEANBUILD
=
"sed -i 's:clean-compiler-and-rts compiler itask:cstaps compiler master:' clean-base/linux-x64/git-sources.txt; sed -i 's:compiler-itask:compiler-master:' clean-base/linux-x64/build.sh"
\
install_clean.sh
'base lib-platform lib-tcpip'
2018-12-1
2
install_clean.sh
'base lib-platform lib-tcpip'
2018-12-1
4
PACKAGES
=
"patch jq unzip z3"
apt-get update
-qq
...
...
backend/builddb.icl
View file @
c1a2571a
...
...
@@ -81,7 +81,9 @@ optionDescription = WithHelp True $ Options
Start
::
*
World
->
*
World
Start
w
#
([
prog
:
args
],
w
)
=
getCommandLine
w
#
(
prog
,
args
,
w
)
=
case
getCommandLine
w
of
([
prog
:
args
],
w
)
->
(
prog
,
args
,
w
)
_
->
abort
"getCommandLine returned 0 elements
\n
"
#
opts
=
parseOptions
optionDescription
args
zero
|
isError
opts
#
err
=
stderr
<<<
'
Text
'.
join
"
\n
"
(
fromError
opts
)
<<<
"
\n
"
...
...
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