mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 13:54:19 +08:00
Make cargo template dynamically linked
This commit is contained in:
parent
7f32e3f0e1
commit
3809f94aca
@ -2,4 +2,8 @@
|
||||
git = "https://gitlab.redox-os.org/redox-os/profiled.git"
|
||||
|
||||
[build]
|
||||
template = "cargo"
|
||||
template = "custom"
|
||||
script = """
|
||||
# Must be statically linked
|
||||
cookbook_cargo
|
||||
"""
|
||||
|
||||
@ -2,4 +2,8 @@
|
||||
git = "https://gitlab.redox-os.org/redox-os/redoxfs.git"
|
||||
|
||||
[build]
|
||||
template = "cargo"
|
||||
template = "custom"
|
||||
script = """
|
||||
# Must be statically linked
|
||||
cookbook_cargo
|
||||
"""
|
||||
|
||||
@ -2,4 +2,8 @@
|
||||
git = "https://gitlab.redox-os.org/redox-os/exampled.git"
|
||||
|
||||
[build]
|
||||
template = "cargo"
|
||||
template = "custom"
|
||||
script = """
|
||||
# Must be statically linked
|
||||
cookbook_cargo
|
||||
"""
|
||||
|
||||
@ -1,4 +1,8 @@
|
||||
[source]
|
||||
git = "https://gitlab.redox-os.org/redox-os/redox-fatfs.git"
|
||||
[build]
|
||||
template = "cargo"
|
||||
template = "custom"
|
||||
script = """
|
||||
# Must be statically linked
|
||||
cookbook_cargo
|
||||
"""
|
||||
|
||||
@ -298,7 +298,7 @@ pub fn build(
|
||||
cargoflags,
|
||||
} => {
|
||||
format!(
|
||||
"PACKAGE_PATH={} cookbook_cargo {cargoflags}",
|
||||
"DYNAMIC_INIT\nPACKAGE_PATH={} cookbook_cargo {cargoflags}",
|
||||
package_path.as_deref().unwrap_or(".")
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user