Code Monkey home page Code Monkey logo

Comments (7)

0x804d8000 avatar 0x804d8000 commented on July 28, 2024

这儿确实有问题。这儿本意是从fakeroot.c生成一个so,然后再把这个so打包到客户端里面去。

但是这个规则不太写的出来,所以直接把编译完的so塞代码库了然后写了个resource_library。

好像没啥特别好的解决方案,可能可以把x86-64/aarch64都塞代码库然后在BUILD里面按照环境区分一下来应付,但是二进制放代码库始终不是很自然。

Workaround的话可以先把这个so编译一下,然后从build64_release/下面把编译好的覆盖掉这儿的同名so。

from yadcc.

fish2bird avatar fish2bird commented on July 28, 2024

@chen3feng 请问 BLADE 是否考虑支持这种用法呢?

from yadcc.

0x804d8000 avatar 0x804d8000 commented on July 28, 2024

优化的话我再看看,不知道gen_rule能不能写出来合适的规则。

确实,编译过程中生成so是最好的。但是gen_rule不一定能和resource_library搞在一起,我确认下。

from yadcc.

0x804d8000 avatar 0x804d8000 commented on July 28, 2024

试着在#50里面搞了个workaround

from yadcc.

0x804d8000 avatar 0x804d8000 commented on July 28, 2024

@chencang1980 hi,介意试一下#38 对应的分支吗,我这儿没有aarch64的环境,不太好测试

from yadcc.

fish2bird avatar fish2bird commented on July 28, 2024

@chencang1980 hi,介意试一下#38 对应的分支吗,我这儿没有aarch64的环境,不太好测试

拉了分支验证了下,先清理了,从头构建成功了,也确认了资源正常生成到了头文件, 运行也正常。

不过我先前为了构建结果与普通构建一致, 补丁了 flare 代码,跳过 fakeroot 逻辑, 明天我还原下相关逻辑再验证下

from yadcc.

fish2bird avatar fish2bird commented on July 28, 2024

@chencang1980 hi,介意试一下#38 对应的分支吗,我这儿没有aarch64的环境,不太好测试

拉了分支验证了下,先清理了,从头构建成功了,也确认了资源正常生成到了头文件, 运行也正常。

不过我先前为了构建结果与普通构建一致, 补丁了 flare 代码,跳过 fakeroot 逻辑, 明天我还原下相关逻辑再验证下

今天还原验证了,正常, fakeroot 逻辑也生效了, 挺好的!

from yadcc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.