【问题标题】:How to activate and modify build configurations in cedet/ede?如何在 cedet/ede 中激活和修改构建配置?
【发布时间】:2012-07-28 16:08:50
【问题描述】:

我基本上想知道如何关闭优化以便 gdb 正常工作。

当我从头开始设置 Automake 项目时,CPPFLAGS 的默认值似乎是“-g -O2”,但我只想要“-g”。有一个不相关的问题,答案显示 Project.ede 文件在此处为目标设置了 configuration-variables 字段:

Setting up an emacs EDE-project with libraries

基于此,我编辑了我的目标以生成以下 Project.ede:

;; Object test3
;; EDE Project Files are auto generated: Do Not Edit
(ede-proj-project "test3"
  :file "Project.ede"
  :name "test3"
  :targets (list 
   (ede-proj-target-makefile-program "test3"
    :name "test3"
    :path ""
    :source '("main.cpp")
    :configuration-variables '(("debug" ("CPPFLAGS" . "-g")) ("release" ("CPPFLAGS" . "-O3")))
    :ldlibs '("boost_program_options" "boost_system")
    )
   )
  :makefile-type 'Makefile.am
  )

但是,在这些编辑之后执行 ede-compile-project 和 ede-compile-target 仍然会产生相同的“-g -O2”值。如何激活我创建的“调试”配置?另外,如何将其设置为新项目的默认配置集,这样我就不需要更改我手动创建的每个新项目?

【问题讨论】:

    标签: emacs cedet


    【解决方案1】:

    您可以在项目设置中更改当前配置。

    M-x customize-project,然后转到设置选项卡并更改当前配置值。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-02
      • 2020-07-04
      • 1970-01-01
      相关资源
      最近更新 更多