Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glow
glow
Commits
c8e33e0b
Commit
c8e33e0b
authored
3 months ago
by
Philip Trettner
Browse files
Options
Downloads
Patches
Plain Diff
made ld.mold the default on linux
parent
de080b53
Branches
develop
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+6
-2
6 additions, 2 deletions
CMakeLists.txt
with
6 additions
and
2 deletions
CMakeLists.txt
+
6
−
2
View file @
c8e33e0b
...
...
@@ -13,7 +13,8 @@ set(GLOW_USE_OWN_GLAD ON CACHE BOOL "If true, extern/glad is used")
# build options
set
(
GLOW_LINK_TYPE SHARED CACHE STRING
"Defines the build type of libraries (shared is default)"
)
set
(
GLOW_USE_GOLD_LINKER ON CACHE BOOL
"If true, ld.gold is used for linking"
)
set
(
GLOW_USE_MOLD_LINKER ON CACHE BOOL
"If true, ld.mold is used for linking"
)
set
(
GLOW_USE_GOLD_LINKER OFF CACHE BOOL
"If true, ld.gold is used for linking"
)
set
(
GLOW_ENABLE_MARCH_NATIVE ON CACHE BOOL
"If true, adds -march=native"
)
# misc
...
...
@@ -110,8 +111,11 @@ if(NOT MSVC)
target_link_libraries
(
glow PUBLIC pthread
)
# mold linker
if
(
GLOW_USE_MOLD_LINKER
)
target_link_libraries
(
glow PUBLIC -fuse-ld=mold
)
# gold linker
if
(
GLOW_USE_GOLD_LINKER
)
else
if
(
GLOW_USE_GOLD_LINKER
)
# WRONG: target_compile_options(glow PUBLIC -fuse-ld=gold )
target_link_libraries
(
glow PUBLIC -fuse-ld=gold
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
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