Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
f94206a5
Commit
f94206a5
authored
4 years ago
by
Samuel Burbulla
Browse files
Options
Downloads
Patches
Plain Diff
Print message when compiling code just-in-time.
parent
7c5c1028
No related branches found
No related tags found
1 merge request
!908
[added to !932] Print message when compiling code just-in-time.
Pipeline
#33745
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/dune/generator/builder.py
+2
-0
2 additions, 0 deletions
python/dune/generator/builder.py
with
2 additions
and
0 deletions
python/dune/generator/builder.py
+
2
−
0
View file @
f94206a5
...
...
@@ -143,6 +143,7 @@ class Builder:
with
Lock
(
os
.
path
.
join
(
self
.
dune_py_dir
,
'
lock-
'
+
moduleName
+
'
.lock
'
),
flags
=
LOCK_EX
):
sourceFileName
=
os
.
path
.
join
(
self
.
generated_dir
,
moduleName
+
"
.cc
"
)
if
not
os
.
path
.
isfile
(
sourceFileName
):
print
(
"
-- Compiling
"
+
pythonName
+
"
...
"
)
logger
.
info
(
"
Loading
"
+
pythonName
+
"
(new)
"
)
code
=
str
(
source
)
# the CMakeLists.txt needs changing and cmake rerun - lock folder
...
...
@@ -159,6 +160,7 @@ class Builder:
# update build system
self
.
compile
()
elif
isString
(
source
)
and
not
source
==
open
(
os
.
path
.
join
(
sourceFileName
),
'
r
'
).
read
():
print
(
"
-- Compiling
"
+
pythonName
+
"
...
"
)
logger
.
info
(
"
Loading
"
+
pythonName
+
"
(updated)
"
)
code
=
str
(
source
)
with
open
(
os
.
path
.
join
(
sourceFileName
),
'
w
'
)
as
out
:
...
...
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