Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7781 from aandvalenzuela/IB/CMSSW_12_4_X/master
Add cpu_features library
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
### RPM external cpu_features 0.7.0 | ||
|
||
Source: https://github.com/google/cpu_features/archive/refs/tags/v%{realversion}.tar.gz | ||
BuildRequires: gmake cmake | ||
|
||
%prep | ||
%setup -n %{n}-%{realversion} | ||
|
||
%build | ||
cmake -S. -Bbuild \ | ||
-DBUILD_TESTING=OFF \ | ||
-DCMAKE_INSTALL_PREFIX:STRING=%{i} | ||
|
||
%install | ||
cd build | ||
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<tool name="cpu_features" version="@TOOL_VERSION@"> | ||
<info url="https://github.com/google/cpu_features"/> | ||
<lib name="cpu_features"/> | ||
<client> | ||
<environment name="CPU_FEATURES_BASE" default="@TOOL_ROOT@"/> | ||
<environment name="LIBDIR" default="$CPU_FEATURES_BASE/lib64"/> | ||
<environment name="INCLUDE" default="$CPU_FEATURES_BASE/include"/> | ||
<environment name="BINDIR" default="$CPU_FEATURES_BASE/bin"/> | ||
</client> | ||
<runtime name="PATH" value="$BINDIR" type="path"/> | ||
</tool> |