diff options
author | Glenn Johnson <glenn-johnson@uiowa.edu> | 2019-12-11 12:13:27 -0600 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-12-11 12:13:27 -0600 |
commit | f2979da2afb1f9a5ce58d38012eeefbcc223d6a6 (patch) | |
tree | 6924cdff26ef2f54e53a26f284453dfd3aa1ac1f | |
parent | 77482e102aa53bc203e74b0a222abd3eba2c550c (diff) | |
download | spack-f2979da2afb1f9a5ce58d38012eeefbcc223d6a6.tar.gz spack-f2979da2afb1f9a5ce58d38012eeefbcc223d6a6.tar.bz2 spack-f2979da2afb1f9a5ce58d38012eeefbcc223d6a6.tar.xz spack-f2979da2afb1f9a5ce58d38012eeefbcc223d6a6.zip |
Build xed CLI for the intel-xed package (#14114)
The xed CLI is handy, and can be gotten by building the examples in the
intel-xed package. This PR builds the examples and installs the xed CLI.
It would also be possible to install more of the example binaries if
someone thinks they are useful.
-rw-r--r-- | var/spack/repos/builtin/packages/intel-xed/package.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/intel-xed/package.py b/var/spack/repos/builtin/packages/intel-xed/package.py index 9b95329a21..b60ad7e702 100644 --- a/var/spack/repos/builtin/packages/intel-xed/package.py +++ b/var/spack/repos/builtin/packages/intel-xed/package.py @@ -84,19 +84,23 @@ class IntelXed(Package): mkdirp(prefix.include) mkdirp(prefix.lib) + mkdirp(prefix.bin) libs = glob.glob(join_path('obj', 'lib*.a')) for lib in libs: install(lib, prefix.lib) - # Build and install shared libxed.so. + # Build and install shared libxed.so and examples (to get the CLI). mfile('--clean') - mfile('--shared', *args) + mfile('examples', '--shared', *args) libs = glob.glob(join_path('obj', 'lib*.so')) for lib in libs: install(lib, prefix.lib) + # Install the xed program + install(join_path('obj', 'examples', 'xed'), prefix.bin) + # Install header files. hdrs = glob.glob(join_path('include', 'public', 'xed', '*.h')) \ + glob.glob(join_path('obj', '*.h')) |