紧凑地覆盖所有目标的构建脚本

时间:2019-03-03 22:51:43

标签: rust rust-cargo

展开关于earlier questionoverriding build scripts with custom libraries ...

我有多个构建目标,并且将来可能还会有更多构建目标:

C:\Users\skarl\AppData\Local\Programs\Python\Python37\python.exe C:/Users/skarl/PycharmProjects/Project02/Root.py Traceback (most recent call last): File "C:/Users/skarl/PycharmProjects/Project02/Root.py", line 40, in <module> -1 print(infixToValue('15 + 16 – 2 + 7 * 3 * 2 – 14')) True File "C:/Users/skarl/PycharmProjects/Project02/Root.py", line 32, in infixToValue repeatOps(token) File "C:/Users/skarl/PycharmProjects/Project02/Root.py", line 25, in repeatOps while valStack.size() > 1 and opStack.size() > 0 and prec[refOp] <= prec[opStack.peek()]: KeyError: '–' Process finished with exit code 1

.cargo/config

说我要为所有目标使用相同的预构建库覆盖库“ libfoo”。如何避免为当前和将来的所有目标列出[target.x86_64-unknown-linux-gnu.libfoo] rustc-link-lib = ["libfoo"] [target.x86_64-apple-darwin.libfoo] rustc-link-lib = ["libfoo"] # ... 表?是否有一个[target.<machine-vendor-os>.libfoo]表达式可以实现这一目标?

0 个答案:

没有答案