Comments (3)
set_policy("check.auto_ignore_flags", false)
from xmake.
local ldscript = "-T".."$(scriptdir)/misc/AT32F437xM_FLASH.ld"
print(ldscript)
-- wrong
-- target:add("ldflags",ldscript, { force = true })
-- wrong
-- target:add("ldflags","-T$(scriptdir)/misc/AT32F437xM_FLASH.ld", { force = true })
脚本域 不要用 $(scriptdir)
那个主要是给描述域用的,脚本域用 os.scriptdir()
,直接用接口,否则路径不对,跟 force 无关
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
local ldscript = "-T".."$(scriptdir)/misc/AT32F437xM_FLASH.ld"
print(ldscript)
-- wrong
-- target:add("ldflags",ldscript, { force = true })
-- wrong
-- target:add("ldflags","-T$(scriptdir)/misc/AT32F437xM_FLASH.ld", { force = true })
Do not use $(scriptdir)
in the script domain. It is mainly used for the description domain. Use os.scriptdir()
in the script domain. Use the interface directly, otherwise the path will be incorrect.
from xmake.
Related Issues (20)
- windows安装远程包SuiteSparse失败 HOT 8
- windows环境wasm目标,package.tools.cmake模块有bug HOT 2
- Add on_source to set urls/versions in packages dynamically HOT 3
- xmake project -k cmake生成的cmakelists.txt中漏掉了/utf-8参数 HOT 5
- Xrepo command not work in conda environment
- 交叉编译Rust项目时,cargo的编译期依赖没有被正确安装 HOT 43
- xmake pack打包失败 c++modules HOT 23
- The option:set_default interface is inconsistent with the documentation description in xmake.io HOT 1
- 编译了过时的代码,但xmake clean && xmake清除后再构建则符合预期 HOT 12
- Linux kernel cannot be built in NixOS HOT 1
- Support TI-CGT compiler like cmake and meson HOT 3
- rk3588s安装出错 HOT 3
- 总会出现关于runtimes的警告信息 HOT 4
- remote build blocked & distcc does not work HOT 7
- 更好的第三方插件集成 HOT 6
- Add links and package with set_sourcedir HOT 6
- GCC cannot find lua headers on Ubuntu HOT 2
- v2.9.2 单测运行失败问题 HOT 8
- add_files("*.c*") wildcard does not work anymore HOT 11
- add net.http.download timeout HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmake.