Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
438
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
e4b58707
Commit
e4b58707
authored
2 years ago
by
Felix Paul Kühne
Committed by
Hugo Beauzée-Luyssen
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
contrib: add support for bitcode
parent
599191d3
No related branches found
No related tags found
1 merge request
!1741
contrib: add support for bitcode
Pipeline
#210765
passed with stage
in 34 minutes and 30 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/bootstrap
+9
-0
9 additions, 0 deletions
contrib/bootstrap
contrib/src/main.mak
+8
-0
8 additions, 0 deletions
contrib/src/main.mak
with
17 additions
and
0 deletions
contrib/bootstrap
+
9
−
0
View file @
e4b58707
...
...
@@ -36,6 +36,7 @@ usage()
echo
" (USE AT YOUR OWN LEGAL RISKS)"
echo
" --disable-optim disable optimization in libraries"
echo
" --enable-pdb generate debug information in PDB format"
echo
" --enable-bitcode generate bitcode information"
}
BUILD
=
...
...
@@ -51,6 +52,7 @@ GNUV3="1"
AD_CLAUSES
=
WITH_OPTIMIZATION
=
"1"
ENABLE_PDB
=
ENABLE_BITCODE
=
while
test
-n
"
$1
"
do
...
...
@@ -83,6 +85,9 @@ do
--enable-pdb
)
ENABLE_PDB
=
1
;;
--enable-bitcode
)
ENABLE_BITCODE
=
1
;;
--enable-small
)
ENABLE_SMALL
=
1
;;
...
...
@@ -306,6 +311,10 @@ case "${OS}" in
then
add_make_enabled
"HAVE_TVOS"
fi
if
test
"
$ENABLE_BITCODE
"
then
add_make_enabled
"HAVE_BITCODE_ENABLED"
fi
;;
*
bsd
*
)
add_make_enabled
"HAVE_BSD"
...
...
This diff is collapsed.
Click to expand it.
contrib/src/main.mak
+
8
−
0
View file @
e4b58707
...
...
@@ -350,6 +350,11 @@ CFLAGS := $(CFLAGS) -g -O2
CXXFLAGS
:=
$(
CXXFLAGS
)
-g
-O2
endif
ifdef
HAVE_BITCODE_ENABLED
CFLAGS
:=
$(
CFLAGS
)
-fembed-bitcode
CXXFLAGS
:=
$(
CXXFLAGS
)
-fembed-bitcode
endif
HOSTVARS
:=
$(
HOSTTOOLS
)
\
CPPFLAGS
=
"
$(
CPPFLAGS
)
"
\
CFLAGS
=
"
$(
CFLAGS
)
"
\
...
...
@@ -463,6 +468,9 @@ MESONFLAGS += --buildtype debug
else
MESONFLAGS
+=
--buildtype
debugoptimized
endif
ifdef
HAVE_BITCODE_ENABLED
MESONFLAGS
+=
-Db_bitcode
=
true
endif
ifdef
HAVE_CROSS_COMPILE
# When cross-compiling meson uses the env vars like
...
...
This diff is collapsed.
Click to expand it.
Felix Paul Kühne
@fkuehne
mentioned in commit
8ea9144d
·
3 months ago
mentioned in commit
8ea9144d
mentioned in commit 8ea9144d959c00d48e2689cba7bbd723f2ce75dd
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment