Skip to content

Commit

Permalink
master: compile.cpp: fix check that can use C compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradbell committed Oct 4, 2024
1 parent 7bc3a8e commit f6e5a7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions appendix/whats_new/2024.xrst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ Release Notes for 2024
mm-dd
*****

10-04
=====
The :ref:`jit_compile.cpp-name` example line was missing
CPPAD_C_COMPILER_CMD in the line (this has been fixed)::

const char* cmd = CPPAD_C_COMPILER_CMD " --version > temp";

10-02
=====
#. The *include_eigen* argument was removed from the :ref:`cmake-name` command
Expand Down
2 changes: 1 addition & 1 deletion example/jit/compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ bool compile(void)
compile = CPPAD_C_COMPILER_CMD " /EHs /EHc /c /TC /O2";
# endif
# if CPPAD_C_COMPILER_GNU_FLAGS
const char* cmd = " --version > temp";
const char* cmd = CPPAD_C_COMPILER_CMD " --version > temp";
if( std::system(cmd) == 0 )
compile = CPPAD_C_COMPILER_CMD " -c -fPIC -O2";
# endif
Expand Down

0 comments on commit f6e5a7e

Please sign in to comment.