-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #160 from mahkoh/jorth/nvidia-in-fence-fd
metal: disable IN_FENCE_FD on nvidia driver
- Loading branch information
Showing
10 changed files
with
69 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,30 @@ | ||
use { | ||
crate::open, | ||
std::{fmt::Write as _, io::Write as _, process::Command}, | ||
}; | ||
|
||
pub fn main() -> anyhow::Result<()> { | ||
create_bridge()?; | ||
create_version()?; | ||
Ok(()) | ||
} | ||
|
||
fn create_bridge() -> anyhow::Result<()> { | ||
println!("cargo:rerun-if-changed=src/bridge.c"); | ||
cc::Build::new().file("src/bridge.c").compile("bridge"); | ||
Ok(()) | ||
} | ||
|
||
fn create_version() -> anyhow::Result<()> { | ||
let mut version_string = env!("CARGO_PKG_VERSION").to_string(); | ||
if let Ok(output) = Command::new("git").arg("rev-parse").arg("HEAD").output() { | ||
if output.status.success() { | ||
if let Ok(commit) = std::str::from_utf8(&output.stdout) { | ||
write!(version_string, " ({})", commit.trim())?; | ||
} | ||
} | ||
} | ||
let mut f = open("version.rs")?; | ||
writeln!(f, "pub const VERSION: &str = \"{}\";", version_string)?; | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# Unreleased | ||
|
||
# 1.0.3 | ||
|
||
- Needs jay-compositor release. | ||
|
||
# 1.0.2 | ||
|
||
- Needs jay-compositor release. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,6 +87,7 @@ mod tree; | |
mod udev; | ||
mod user_session; | ||
mod utils; | ||
mod version; | ||
mod video; | ||
mod wheel; | ||
mod wire; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include!(concat!(env!("OUT_DIR"), "/version.rs")); |