Skip to content

Commit 29ba33d

Browse files
hs0225daeyeon
authored andcommitted
fix: disable lto on Tizen
Signed-off-by: Hosung Kim [email protected]
1 parent 5618b3a commit 29ba33d

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

packaging/lwnode.spec

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ echo $CFLAGS
136136
%endif
137137

138138
# building lwnode executable
139+
140+
CFLAGS+=" -fno-lto "
141+
CXXFLAGS+=" -fno-lto "
142+
LDFLAGS+=" -fno-lto "
143+
144+
./tools/envinfo.sh
145+
139146
./configure.py --tizen --verbose \
140147
--nopt --dest-cpu='%{tizen_arch}' \
141148
--arch='%{tizen_arch}' \

tools/envinfo.sh

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#!/bin/bash
2+
3+
SCRIPT_DIR=$(dirname "$(readlink -f "$0")")
4+
[ -f "$SCRIPT_DIR/logo.sh" ] && source "$SCRIPT_DIR/logo.sh"
5+
6+
print_version() {
7+
local cmd=$1
8+
local prefix=$2
9+
if command -v $cmd &> /dev/null; then
10+
if [ -z "$prefix" ]; then
11+
echo -e "$($cmd --version)\n"
12+
else
13+
echo -e "$prefix: $($cmd --version)\n"
14+
fi
15+
else
16+
echo -e "$cmd not found\n"
17+
fi
18+
}
19+
20+
print_env_var() {
21+
local var_name=$1
22+
local var_value=$2
23+
local delimiter=$3
24+
25+
if [[ -n $var_value ]]; then
26+
echo "envvar($var_name):"
27+
if [[ -n $delimiter ]]; then
28+
echo "$var_value" | tr "$delimiter" '\n'
29+
else
30+
echo "$var_value"
31+
fi
32+
echo
33+
fi
34+
}
35+
36+
print_version cmake
37+
print_version gcc
38+
print_version make
39+
print_version ninja ninja
40+
print_version node node
41+
print_version npm npm
42+
print_version python python
43+
print_version clang
44+
print_version clang-format
45+
print_version valgrind
46+
47+
echo "nproc: $(getconf _NPROCESSORS_ONLN)" && echo
48+
print_env_var "RUNNER_NAME" "$RUNNER_NAME"
49+
print_env_var "CC" "$CC"
50+
print_env_var "CXX" "$CXX"
51+
print_env_var "CXXFLAGS" "$CXXFLAGS" ' '

0 commit comments

Comments
 (0)