projects
/
sdk
/
tools
/
coreprofiler.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9b4cfe
)
Pass mandatory compiler arguments to cmake
sandbox/nmerinov/llvm
author
Nikolai Merinov
<n.merinov@samsung.com>
Tue, 12 Feb 2019 07:26:53 +0000
(10:26 +0300)
committer
Nikolai Merinov
<n.merinov@samsung.com>
Tue, 12 Feb 2019 07:42:25 +0000
(10:42 +0300)
packaging/coreprofiler.spec
patch
|
blob
|
history
diff --git
a/packaging/coreprofiler.spec
b/packaging/coreprofiler.spec
index b6df12baaa9debf2a466075fc7347e82d8abc21f..3b1758d00f9faaf0edfb0c890dd291f6b78fe349 100644
(file)
--- a/
packaging/coreprofiler.spec
+++ b/
packaging/coreprofiler.spec
@@
-38,6
+38,10
@@
This is a CoreCLR profiler for Tizen.
cp %{SOURCE1000} .
%build
+COMPILER_ARG1=
+if echo "$CC" | grep -q clang ; then
+ COMPILER_ARG1="$(echo $CC | sed -e 's/^[^ ]*//')"
+fi
export CFLAGS="--target=%{_host}"
export CXXFLAGS="--target=%{_host}"
@@
-59,6
+63,8
@@
cmake .. \
-DCLR_SRC_DIR=%{_datarootdir}/%{netcoreappdir} \
-DCLR_BIN_DIR=%{_datarootdir}/%{netcoreappdir} \
-DCLR_CMAKE_LINUX_ID=tizen \
+ -DCMAKE_C_COMPILER_ARG1="$COMPILER_ARG1" \
+ -DCMAKE_CXX_COMPILER_ARG1="$COMPILER_ARG1" \
%{?_cmake_arch_args}
make %{?jobs:-j%jobs}