Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
34c9eba9
Commit
34c9eba9
authored
Feb 06, 2016
by
Diego Biurrun
Committed by
Luca Barbato
Feb 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Refactor toolchain flag setting
Signed-off-by:
Luca Barbato
<
lu_zero@gentoo.org
>
parent
dd53af4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
27 deletions
+26
-27
configure
configure
+26
-27
No files found.
configure
View file @
34c9eba9
...
@@ -2718,43 +2718,42 @@ echo "# $0 $LIBAV_CONFIGURATION" > $logfile
...
@@ -2718,43 +2718,42 @@ echo "# $0 $LIBAV_CONFIGURATION" > $logfile
set
>>
$logfile
set
>>
$logfile
case
"
$toolchain
"
in
case
"
$toolchain
"
in
clang
-asan
)
*
-asan
)
cc_default
=
"
clang
"
cc_default
=
"
${
toolchain
%-asan
}
"
add_cflags
-fsanitize
=
address
add_cflags
-fsanitize
=
address
add_ldflags
-fsanitize
=
address
add_ldflags
-fsanitize
=
address
;;
;;
clang
-tsan
)
*
-tsan
)
cc_default
=
"
clang
"
cc_default
=
"
${
toolchain
%-tsan
}
"
add_cflags
-fsanitize
=
thread
-pie
add_cflags
-fsanitize
=
thread
-pie
add_ldflags
-fsanitize
=
thread
-pie
add_ldflags
-fsanitize
=
thread
-pie
case
"
$toolchain
"
in
gcc-tsan
)
add_cflags
-fPIC
add_ldflags
-fPIC
;;
esac
;;
;;
clang-usan
)
*
-usan
)
cc_default
=
"clang"
cc_default
=
"
${
toolchain
%-usan
}
"
add_cflags
-fsanitize
=
undefined
-O1
add_ldflags
-fsanitize
=
undefined
;;
gcc-asan
)
cc_default
=
"gcc"
add_cflags
-fsanitize
=
address
add_ldflags
-fsanitize
=
address
;;
gcc-tsan
)
cc_default
=
"gcc"
add_cflags
-fsanitize
=
thread
-pie
-fPIC
add_ldflags
-fsanitize
=
thread
-pie
-fPIC
;;
gcc-usan
)
cc_default
=
"gcc"
add_cflags
-fsanitize
=
undefined
add_cflags
-fsanitize
=
undefined
add_ldflags
-fsanitize
=
undefined
add_ldflags
-fsanitize
=
undefined
case
"
$toolchain
"
in
clang-usan
)
add_cflags
-O1
;;
esac
;;
;;
valgrind-massif
)
valgrind-
*
)
target_exec_default
=
"valgrind"
target_exec_args
=
"--alloc-fn=av_malloc --alloc-fn=av_mallocz"
;;
valgrind-memcheck
)
target_exec_default
=
"valgrind"
target_exec_default
=
"valgrind"
target_exec_args
=
"--track-origins=yes --leak-check=full"
case
"
$toolchain
"
in
valgrind-massif
)
target_exec_args
=
"--alloc-fn=av_malloc --alloc-fn=av_mallocz"
;;
valgrind-memcheck
)
target_exec_args
=
"--track-origins=yes --leak-check=full"
;;
esac
;;
;;
msvc
)
msvc
)
# Check whether the current MSVC version needs the C99 converter.
# Check whether the current MSVC version needs the C99 converter.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment