Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SWIFT
SWIFTsim
Commits
a0e45903
Commit
a0e45903
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Removed the collection of the CPPFLAGS.
parent
f1788d3d
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!285
Added the configuration command line and CFLAGS/CXXFLAGS to the snapshots and greeting message.
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
src/Makefile.am
+2
-4
2 additions, 4 deletions
src/Makefile.am
src/common_io.c
+0
-1
0 additions, 1 deletion
src/common_io.c
src/version.c
+0
-20
0 additions, 20 deletions
src/version.c
src/version.h
+0
-1
0 additions, 1 deletion
src/version.h
src/version_string.h.in
+0
-1
0 additions, 1 deletion
src/version_string.h.in
with
2 additions
and
27 deletions
src/Makefile.am
+
2
−
4
View file @
a0e45903
...
...
@@ -109,15 +109,13 @@ version_string.h: version_string.h.in $(AM_SOURCES) $(include_HEADERS) $(noinst_
sed
-e
"s,@PACKAGE_VERSION
\@
,
$(
PACKAGE_VERSION
)
,"
\
-e
"s,@GIT_REVISION
\@
,
$${
GIT_REVISION
}
,"
\
-e
"s|@GIT_BRANCH
\@
|
$${
GIT_BRANCH
}
|"
\
-e
"s|@SWIFT_CFLAGS
\@
|
$(
CFLAGS
)
|"
\
-e
"s|@SWIFT_CPPFLAGS
\@
|
$(
CPPFLAGS
)
|"
$<
>
version_string.h
;
\
-e
"s|@SWIFT_CFLAGS
\@
|
$(
CFLAGS
)
|"
$<
>
version_string.h
;
\
else
\
if
test
!
-f
version_string.h
;
then
\
sed
-e
"s,@PACKAGE_VERSION
\@
,
$(
PACKAGE_VERSION
)
,"
\
-e
"s,@GIT_REVISION
\@
,unknown,"
\
-e
"s,@GIT_BRANCH
\@
,unknown,"
\
-e
"s|@SWIFT_CFLAGS
\@
|
$(
CFLAGS
)
|"
\
-e
"s|@SWIFT_CPPFLAGS
\@
|
$(
CPPLAGS
)
|"
$<
>
version_string.h
;
\
-e
"s|@SWIFT_CFLAGS
\@
|
$(
CFLAGS
)
|"
$<
>
version_string.h
;
\
fi
;
\
fi
...
...
This diff is collapsed.
Click to expand it.
src/common_io.c
+
0
−
1
View file @
a0e45903
...
...
@@ -375,7 +375,6 @@ void writeCodeDescription(hid_t h_file) {
writeAttribute_s
(
h_grpcode
,
"Git Revision"
,
git_revision
());
writeAttribute_s
(
h_grpcode
,
"Configuration options"
,
configuration_options
());
writeAttribute_s
(
h_grpcode
,
"CFLAGS"
,
compilation_cflags
());
writeAttribute_s
(
h_grpcode
,
"CPPFLAGS"
,
compilation_cppflags
());
writeAttribute_s
(
h_grpcode
,
"HDF5 library version"
,
hdf5_version
());
#ifdef HAVE_FFTW
writeAttribute_s
(
h_grpcode
,
"FFTW library version"
,
fftw3_version
());
...
...
This diff is collapsed.
Click to expand it.
src/version.c
+
0
−
20
View file @
a0e45903
...
...
@@ -149,25 +149,6 @@ const char *compilation_cflags(void) {
return
buf
;
}
/**
* @brief Return the CPPFLAGS the code was compiled with
*
* @result List of CPPFLAGS within simple quotes (')
*/
const
char
*
compilation_cppflags
(
void
)
{
static
char
buf
[
1024
];
static
int
initialised
=
0
;
static
const
char
*
cppflags
=
SWIFT_CPPFLAGS
;
if
(
!
initialised
)
{
if
(
strlen
(
cppflags
)
<
1024
-
2
)
sprintf
(
buf
,
"'%s'"
,
cppflags
);
else
error
(
"SWIFT_CPPFLAGS string longer than buffer"
);
initialised
=
1
;
}
return
buf
;
}
/**
* @brief The version of SWIFT
*
...
...
@@ -356,7 +337,6 @@ void greetings(void) {
printf
(
" Config. options: %s
\n\n
"
,
configuration_options
());
printf
(
" Compiler: %s, Version: %s
\n
"
,
compiler_name
(),
compiler_version
());
printf
(
" CFLAGS : %s
\n
"
,
compilation_cflags
());
printf
(
" CPPFLAGS: %s
\n
"
,
compilation_cppflags
());
printf
(
"
\n
"
);
#ifdef HAVE_HDF5
printf
(
" HDF5 library version: %s
\n
"
,
hdf5_version
());
...
...
This diff is collapsed.
Click to expand it.
src/version.h
+
0
−
1
View file @
a0e45903
...
...
@@ -27,7 +27,6 @@ const char* git_revision(void);
const
char
*
git_branch
(
void
);
const
char
*
configuration_options
(
void
);
const
char
*
compilation_cflags
(
void
);
const
char
*
compilation_cppflags
(
void
);
const
char
*
compiler_name
(
void
);
const
char
*
compiler_version
(
void
);
const
char
*
mpi_version
(
void
);
...
...
This diff is collapsed.
Click to expand it.
src/version_string.h.in
+
0
−
1
View file @
a0e45903
...
...
@@ -29,6 +29,5 @@
#define GIT_REVISION "@GIT_REVISION@"
#define GIT_BRANCH "@GIT_BRANCH@"
#define SWIFT_CFLAGS "@SWIFT_CFLAGS@"
#define SWIFT_CPPFLAGS "@SWIFT_CPPFLAGS@"
#endif /* SWIFT_VERSION_STRING_H */
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