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)
- 解压扩展包 utils.archive ,win/linux下正常解压,mac下没有解压也没有报错 HOT 12
- before_build ignored by parallel synchronize HOT 5
- Windows 下加密磁盘环境,gcc/build cache 预编译报错 HOT 27
- link flags传参有空格问题 HOT 5
- tinycc 编译相关设置 HOT 56
- add_packages 静态库时由于库重名导致符号丢失 HOT 2
- 本地编译成功,但 GitHub action 失败 HOT 11
- 当静态库/动态库目标仅包含模块文件时,链接出错 HOT 4
- Import cmake Packages in Windows Platform Will Enmurate All Compile Definitions in Exported CMakeLists.txt HOT 3
- C++20 模块MSVC编译规则少一个逗号 HOT 3
- 设置环境变量XMAKE_LOG, 在after_build中调用自定义命令, 命令的输出应该也导入到日志文件 HOT 4
- Generate a header file for editors to run IntelliSense normally while using C++20 named modules
- Improve print in description scope.
- Improve select_script HOT 1
- C1041 when compiling project with custom rule HOT 3
- Add support for MSVC 14.39.33519 HOT 1
- Windows 上无法使用 QT 开发。 HOT 4
- `xmake run`/`xmake test` failing to execute targets in github actions (CI) HOT 14
- [Bug]: target:set('kind', 'static') specified in on_config will compile but not link library specified as dependency HOT 4
- 规则当中添加文件时指定defines HOT 2
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.