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
C
clean-ide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
clean-ide
Commits
2f25118c
Verified
Commit
2f25118c
authored
Apr 07, 2019
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only run OptimiseABC and ByteCodeGen when the source file has changed
parent
688fd7d4
Pipeline
#20752
passed with stage
in 1 minute and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
Pm/PmDriver.icl
Pm/PmDriver.icl
+13
-3
No files found.
Pm/PmDriver.icl
View file @
2f25118c
...
@@ -1673,6 +1673,11 @@ OptimiseABC mdn abc_path ps
...
@@ -1673,6 +1673,11 @@ OptimiseABC mdn abc_path ps
abcopt
=
startupdir
+++
DirSeparatorString
+++
abcopt
abcopt
=
startupdir
+++
DirSeparatorString
+++
abcopt
#
abcopt_path
=
abc_path
%
(
0
,
size
abc_path
-4
)
+++
"opt.abc"
#
abcopt_path
=
abc_path
%
(
0
,
size
abc_path
-4
)
+++
"opt.abc"
#
(
abc_date
,
ps
)
=
accFiles
(
FModified
abc_path
)
ps
#
(
abcopt_date
,
ps
)
=
accFiles
(
FModified
abcopt_path
)
ps
|
abcopt_date
.
exists
&&
Older_Date
abc_date
abcopt_date
=
(
True
,
ps
)
#
ps
=
showInfo
(
Level2
(
"Optimising ABC for '"
+++
mdn
.
mdn_name
+++
"'."
))
ps
#
ps
=
showInfo
(
Level2
(
"Optimising ABC for '"
+++
mdn
.
mdn_name
+++
"'."
))
ps
#
(
exitcode
,
err
,
ps
)
=
RunExternalCommand
abcopt
[
abc_path
,
"-o"
,
abcopt_path
]
startupdir
ps
#
(
exitcode
,
err
,
ps
)
=
RunExternalCommand
abcopt
[
abc_path
,
"-o"
,
abcopt_path
]
startupdir
ps
#
err
=
if
(
exitcode
==
0
)
#
err
=
if
(
exitcode
==
0
)
...
@@ -1686,11 +1691,16 @@ ByteCodeGen use_optimised_abc mdn abc_path ps
...
@@ -1686,11 +1691,16 @@ ByteCodeGen use_optimised_abc mdn abc_path ps
#
(
startupdir
,
ps
)
=
getStup
ps
#
(
startupdir
,
ps
)
=
getStup
ps
(
bcgen
,
ps
)
=
getCurrentBCgen
ps
(
bcgen
,
ps
)
=
getCurrentBCgen
ps
bcgen
=
startupdir
+++
DirSeparatorString
+++
bcgen
bcgen
=
startupdir
+++
DirSeparatorString
+++
bcgen
#
abcopt_path
=
abc_path
%
(
0
,
size
abc_path
-4
)
+++
"opt.abc"
#
bc_path
=
abc_path
%
(
0
,
size
abc_path
-4
)
+++
"bc"
bc_path
=
abc_path
%
(
0
,
size
abc_path
-4
)
+++
"bc"
abc_path
=
if
use_optimised_abc
(
abc_path
%
(
0
,
size
abc_path
-4
)
+++
"opt.abc"
)
abc_path
#
(
abc_date
,
ps
)
=
accFiles
(
FModified
abc_path
)
ps
(
bc_date
,
ps
)
=
accFiles
(
FModified
bc_path
)
ps
|
bc_date
.
exists
&&
Older_Date
abc_date
bc_date
=
(
True
,
ps
)
#
ps
=
showInfo
(
Level2
(
"Generating bytecode for '"
+++
mdn
.
mdn_name
+++
"'."
))
ps
#
ps
=
showInfo
(
Level2
(
"Generating bytecode for '"
+++
mdn
.
mdn_name
+++
"'."
))
ps
#
(
exitcode
,
err
,
ps
)
=
RunExternalCommand
bcgen
[
if
use_optimised_abc
abcopt_path
abc_path
,
"-o"
,
bc_path
]
startupdir
ps
#
(
exitcode
,
err
,
ps
)
=
RunExternalCommand
bcgen
[
abc_path
,
"-o"
,
bc_path
]
startupdir
ps
#
err
=
if
(
exitcode
==
0
)
#
err
=
if
(
exitcode
==
0
)
err
err
(
err
++
[
"Bytecode generator failed for "
+++
mdn
.
mdn_name
+++
" (exit code: "
+++
toString
exitcode
+++
")"
])
(
err
++
[
"Bytecode generator failed for "
+++
mdn
.
mdn_name
+++
" (exit code: "
+++
toString
exitcode
+++
")"
])
...
...
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