Use system CC for compilation sandbox/nmerinov/llvm
authorNikolai Merinov <n.merinov@samsung.com>
Mon, 11 Feb 2019 09:24:49 +0000 (12:24 +0300)
committerNikolai Merinov <n.merinov@samsung.com>
Mon, 11 Feb 2019 09:24:49 +0000 (12:24 +0300)
packaging/wrtjs.spec

index 8e9886db94c3253d5b5432503e95222e3c91b7a4..4f3280c5c53e736475e266735027ecc5d86f1087 100755 (executable)
@@ -19,6 +19,10 @@ Web Runtime Engine based on Electron
 %setup -q
 
 %build
+sed -i -e 's|command = "gcc|command = "'"${CC:-gcc}"'|' \
+       -e 's|command = "c++|command = "'"${CXX:-g++}"'|' \
+       -e 's|command = "g++|command = "'"${CXX:-g++}"'|' \
+    BUILD.gn
 %if "%{?tizen_profile_name}" != "tv"
   %define _outdir $PWD/out
   ./build/tools/gn gen %{_outdir}