mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 14:05:59 +01:00
use cc instead of as
Co-authored-by: Jan Beich <jbeich@FreeBSD.org>
This commit is contained in:
parent
d9651eab99
commit
d8ca95be76
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ CFunctionHook::SAssembly CFunctionHook::fixInstructionProbeRIPCalls(const SInstr
|
||||||
std::ofstream ofs("/tmp/hypr/.hookcode.asm", std::ios::trunc);
|
std::ofstream ofs("/tmp/hypr/.hookcode.asm", std::ios::trunc);
|
||||||
ofs << assemblyBuilder;
|
ofs << assemblyBuilder;
|
||||||
ofs.close();
|
ofs.close();
|
||||||
execAndGet("as /tmp/hypr/.hookcode.asm -o /tmp/hypr/.hookbinary.o && objcopy -O binary -j .text /tmp/hypr/.hookbinary.o /tmp/hypr/.hookbinary2.o");
|
execAndGet("cc -x assembler -c /tmp/hypr/.hookcode.asm -o /tmp/hypr/.hookbinary.o && objcopy -O binary -j .text /tmp/hypr/.hookbinary.o /tmp/hypr/.hookbinary2.o");
|
||||||
if (!std::filesystem::exists("/tmp/hypr/.hookbinary2.o")) {
|
if (!std::filesystem::exists("/tmp/hypr/.hookbinary2.o")) {
|
||||||
std::filesystem::remove("/tmp/hypr/.hookcode.asm");
|
std::filesystem::remove("/tmp/hypr/.hookcode.asm");
|
||||||
std::filesystem::remove("/tmp/hypr/.hookbinary.asm");
|
std::filesystem::remove("/tmp/hypr/.hookbinary.asm");
|
||||||
|
|
Loading…
Reference in a new issue