"-Xclang",
"-debug-info-kind=limited",
]
+ } else if (is_tizen) {
+ cflags += [
+ "-Xclang",
+ "-debug-info-kind=constructor",
+ ]
} else {
# Use constructor homing for debug info. This option reduces debug info
# by emitting class type info only when constructors are emitted.
local NOINIT=0
local MIRROR=0
local LOCAL_BUILD=1
+ local RELEASE_BUILD=0
# "|| :" means "or always succeeding built-in command"
PROFILE=$(echo "$@" | grep -Po "(?<=\-P\s)[^\s]*" | head -1 || :)
;;
--release)
LOCAL_BUILD=0
- ARGS+=(--define "_local_build 0")
- ARGS+=(--define "_clang 0")
+ RELEASE_BUILD=1
;;
--gcc)
LOCAL_BUILD=0
local _smp_mflags=-j$(if ((${_jobs} > 10)); then echo ${_jobs}; else echo 10; fi)
ARGS+=(--define "_costomized_smp_mflags $_smp_mflags")
# Default values
+ ARGS+=(--define "_clang 1")
+ fi
+
+ if [ "$RELEASE_BUILD" == "1" ]; then
+ ARGS+=(--define "_local_build 0")
if [[ $platform == "tv" ]]; then
- ARGS+=(--define "_clang 0")
- else
ARGS+=(--define "_clang 1")
+ else
+ ARGS+=(--define "_clang 0")
+ ARGS+=(--define "_no_lto 0")
fi
fi