Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(121)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 656044: Google Test AIX/Solaris Porting Effort

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 9 months ago by Hady
Modified:
11 years, 1 month ago
Reviewers:
wan
Base URL:
http://googletest.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 14

Patch Set 2 : Factored CMake flags #

Patch Set 3 : Updated CMake Script & Fixed AIX RTTI Detection #

Patch Set 4 : Added incorrectly removed comment #

Created: 15 years, 9 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -19 lines) Patch
M CMakeLists.txt View 1 2 3 2 chunks +38 lines, -18 lines 0 comments Download
M include/gtest/internal/gtest-port.h View 1 2 2 chunks +11 lines, -1 line 0 comments Download
M src/gtest.cc View 2 chunks +4 lines, -0 lines 0 comments Download
Total messages: 2
|
wan
http://codereview.appspot.com/656044/diff/1/4 File CMakeLists.txt (right): http://codereview.appspot.com/656044/diff/1/4#newcode77 CMakeLists.txt:77: set(cxx_base "${CMAKE_CXX_FLAGS} ${cxx_base}") Remove ${cxx_base} from the definition body ...
15 years, 9 months ago (2010年03月23日 17:29:30 UTC) #1
http://codereview.appspot.com/656044/diff/1/4
File CMakeLists.txt (right):
http://codereview.appspot.com/656044/diff/1/4#newcode77
CMakeLists.txt:77: set(cxx_base "${CMAKE_CXX_FLAGS} ${cxx_base}")
Remove ${cxx_base} from the definition body - it's not defined yet.
http://codereview.appspot.com/656044/diff/1/4#newcode79
CMakeLists.txt:79: set(cxx_default "${cxx_base} ${cxx_exceptions}")
Where is cxx_exceptions defined?
http://codereview.appspot.com/656044/diff/1/4#newcode80
CMakeLists.txt:80: set(cxx_strict "${cxx_default} ${cxx_strict}")
Remove ${cxx_strict}.
http://codereview.appspot.com/656044/diff/1/4#newcode84
CMakeLists.txt:84: if (UNIX AND CMAKE_USE_PTHREADS_INIT) # The pthreads library
is available.
Why is 'UNIX' necessary here?
http://codereview.appspot.com/656044/diff/1/4#newcode85
CMakeLists.txt:85: set(cxx_base "${cxx_base} -DGTEST_HAS_PTHREAD=1")
cxx_base must be defined before cxx_default and cxx_strict, as the latter two
depend on the value of cxx_base.
http://codereview.appspot.com/656044/diff/1/4#newcode259
CMakeLists.txt:259: set(cxx_no_exception "${cxx_base} ${cxx_no_exception}")
Remove ${cxx_no_exception}.
http://codereview.appspot.com/656044/diff/1/4#newcode260
CMakeLists.txt:260: set(cxx_no_rtti "${cxx_default} ${cxx_no_rtti}
-DGTEST_HAS_RTTI=0")
Remove ${cxx_no_rtti}.
Sign in to reply to this message.
Hady
I've published my comments. I'm not quite sure why you want me to remove the ...
15 years, 9 months ago (2010年03月23日 18:26:08 UTC) #2
I've published my comments. I'm not quite sure why you want me to remove the
cxx_no_exception and cxx_no_rtti flags. I put them there to be able and set my
toolchain's equivalent of '-fno-exceptions' and '-fno-rtti'. Maybe the naming is
off? I uploaded a patch set which I think is better. I basically factored out
all the common parts leaving it to the user to define certain flags on
non-supported platforms. Let me know what you think.
http://codereview.appspot.com/656044/diff/1/4
File CMakeLists.txt (right):
http://codereview.appspot.com/656044/diff/1/4#newcode77
CMakeLists.txt:77: set(cxx_base "${CMAKE_CXX_FLAGS} ${cxx_base}")
Ok will do.
On 2010年03月23日 17:29:30, wan wrote:
> Remove ${cxx_base} from the definition body - it's not defined yet.
http://codereview.appspot.com/656044/diff/1/4#newcode79
CMakeLists.txt:79: set(cxx_default "${cxx_base} ${cxx_exceptions}")
It's not. It'll be empty "" or set by the user on the command line like so:
-Dcxx_exceptions="-qeh"
On 2010年03月23日 17:29:30, wan wrote:
> Where is cxx_exceptions defined?
http://codereview.appspot.com/656044/diff/1/4#newcode80
CMakeLists.txt:80: set(cxx_strict "${cxx_default} ${cxx_strict}")
Are you sure? What if a toolchain has the equivalent?
On 2010年03月23日 17:29:30, wan wrote:
> Remove ${cxx_strict}.
http://codereview.appspot.com/656044/diff/1/4#newcode84
CMakeLists.txt:84: if (UNIX AND CMAKE_USE_PTHREADS_INIT) # The pthreads library
is available.
It's not, was just too worried about breaking your Win32 build. Would you like
me to remove it?
On 2010年03月23日 17:29:30, wan wrote:
> Why is 'UNIX' necessary here?
http://codereview.appspot.com/656044/diff/1/4#newcode85
CMakeLists.txt:85: set(cxx_base "${cxx_base} -DGTEST_HAS_PTHREAD=1")
Absolutely. Will pull up the thread test and try to merge the gnu and non-gnu
branches...
On 2010年03月23日 17:29:30, wan wrote:
> cxx_base must be defined before cxx_default and cxx_strict, as the latter two
> depend on the value of cxx_base.
http://codereview.appspot.com/656044/diff/1/4#newcode259
CMakeLists.txt:259: set(cxx_no_exception "${cxx_base} ${cxx_no_exception}")
Same as above. What if the user wants to test the features with his 'no
exceptions' flag?
On 2010年03月23日 17:29:30, wan wrote:
> Remove ${cxx_no_exception}.
http://codereview.appspot.com/656044/diff/1/4#newcode260
CMakeLists.txt:260: set(cxx_no_rtti "${cxx_default} ${cxx_no_rtti}
-DGTEST_HAS_RTTI=0")
Same here...
On 2010年03月23日 17:29:30, wan wrote:
> Remove ${cxx_no_rtti}.
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /