2012-07-28 24 views
1

我基本上想知道如何關閉優化,以便gdb正常工作。如何激活和修改cedet/ede中的構建配置?

當我從頭開始設置Automake項目時,似乎CPPFLAGS的默認值是「-g -O2」,但我只想要「-g」。有一個問題無關,其中的答案顯示,有目標的配置變量字段設置在這裏Project.ede文件:

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」值。我如何激活我創建的「調試」配置?另外,如何將此設置爲新項目的默認配置集,以便我不需要更改手動創建的每個新項目?

回答

1

您可以在項目設置中更改當前配置。

M-x customize-project,然後轉到設置選項卡並更改當前配置值。

相關問題